[jQuery] jQuery code sometimes hangs. How to investigate.

2009-05-05 Thread LinkGuru
I'll try and describe the architecture of some of my code, and then describe my problem to see if anybody out there can help. The code outlines are only included to show the technology mix and you'll see that you need not analyse it too much when you hear about the problem I have, described at the

[jQuery] Re: appending an option to select list (dropdown), making it the selected one

2009-04-04 Thread LinkGuru
so thanks to RvFlash On Apr 4, 10:31 am, LinkGuru wrote: > Thanks RvFlash, I'll take a look. I just missed your post before I > sent my chase up message. > > On Apr 4, 10:29 am, LinkGuru wrote: > > > Can anyone help with this? It appears to have been overlooked. The

[jQuery] Re: appending an option to select list (dropdown), making it the selected one

2009-04-04 Thread LinkGuru
Thanks RvFlash, I'll take a look. I just missed your post before I sent my chase up message. On Apr 4, 10:29 am, LinkGuru wrote: > Can anyone help with this? It appears to have been overlooked. The > title should really have been "changing the selected item in a > dropdown&q

[jQuery] Re: appending an option to select list (dropdown), making it the selected one

2009-04-04 Thread LinkGuru
to rebuild the list? On Apr 3, 6:22 pm, LinkGuru wrote: > With the following code, I'm managing to append to a drop-down list > using jQuery, but can't figure out how to amend one of the existing > items in the drop down so it is not the selected one i.e. I only want > the o

[jQuery] appending an option to select list (dropdown), making it the selected one

2009-04-03 Thread LinkGuru
With the following code, I'm managing to append to a drop-down list using jQuery, but can't figure out how to amend one of the existing items in the drop down so it is not the selected one i.e. I only want the one that's appended to be the selected one. Can anyone help? Here is the simplified code

[jQuery] Re: JQuery/PHP debugging technique - any suggestions on how to do this?

2009-04-02 Thread LinkGuru
eally try the combination of Firebug and > FirePHP...http://www.firephp.org/ > > On Apr 2, 12:40 am, LinkGuru wrote: > > > Thanks. I've installed the add-on. I'll give it a whirl. > > > On Apr 1, 8:00 pm, Hector Virgen wrote: > > > > You should try u

[jQuery] Re: JQuery/PHP debugging technique - any suggestions on how to do this?

2009-04-01 Thread LinkGuru
he firebug console. > -Hector > > On Wed, Apr 1, 2009 at 11:56 AM, LinkGuru wrote: > > > Hi, I am looking for some help debugging jQuery being used with PHP in > > the way described. I basically want a way of tracing where it gets to > > in the PHP because the usual met

[jQuery] JQuery/PHP debugging technique - any suggestions on how to do this?

2009-04-01 Thread LinkGuru
Hi, I am looking for some help debugging jQuery being used with PHP in the way described. I basically want a way of tracing where it gets to in the PHP because the usual methods of writing out statements to the page or embedding javascript alerts are not available to me in this scenario. I will no

[jQuery] Re: JQuery variable usage with single/double quote problem

2009-03-31 Thread LinkGuru
It's the pressure of a deadline making me a bit too hasty. On Mar 31, 9:20 pm, Ricardo wrote: > The quotes in the attr selector are not required, try: > $('select[name=ddlViewSelector_'+idCurrent+'] option:selected').text > (); > > On Mar 31, 2:47 pm, LinkG

[jQuery] JQuery variable usage with single/double quote problem

2009-03-31 Thread LinkGuru
Can anyone help on this one? . The following statement is proven to work: p_viewSelector=$("select[name='dllViewSelector_Search_0'] option:selected").text(); But now I need to adapt it so the Search_0 component is replaced by a variable (because it isn't always going to be Search_0 at t

[jQuery] Re: Problem getting selected value from drop-down

2009-03-31 Thread LinkGuru
) > you get a jQuery object with a reference to the element, not the > element itself. You can access it like in an array: > $("#dllViewSelector")[0].selectedIndex; > > On Mar 31, 7:51 am, LinkGuru wrote: > > > Hi, Can anyone help with the following? With JQuery, I can&

[jQuery] Re: Problem getting selected value from drop-down

2009-03-31 Thread LinkGuru
id attribute to > the select tag, or reference it as $("select[name='dllViewSelector'] > option:selected") in your jQuery. > > On Mar 31, 6:51 am, LinkGuru wrote: > > > Hi, Can anyone help with the following? With JQuery, I can't > > successful

[jQuery] Problem getting selected value from drop-down

2009-03-31 Thread LinkGuru
Hi, Can anyone help with the following? With JQuery, I can't successfully grab the selected value from a drop-down. The alert just shows an empty message. At least it is not showing undefined (as it was for my other attempts - you can see what these were from the commented out code), but I would e