[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

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

2009-04-04 Thread LinkGuru
the list? On Apr 3, 6:22 pm, LinkGuru i...@legalanalytics.co.uk 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 one that's appended

[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 i...@legalanalytics.co.uk 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

[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 i...@legalanalytics.co.uk 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 i...@legalanalytics.co.uk wrote: Can anyone help with this? It appears to have been

[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

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

2009-04-02 Thread LinkGuru
the combination of Firebug and FirePHP...http://www.firephp.org/ On Apr 2, 12:40 am, LinkGuru i...@legalanalytics.co.uk wrote: Thanks. I've installed the add-on. I'll give it a whirl. On Apr 1, 8:00 pm, Hector Virgen djvir...@gmail.com wrote: You should try using Firebug. You can print

[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

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

2009-04-01 Thread LinkGuru
console. -Hector On Wed, Apr 1, 2009 at 11:56 AM, LinkGuru i...@legalanalytics.co.uk 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 methods of writing out statements

[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

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

2009-03-31 Thread LinkGuru
, but you only have that as a name in your html. either add the 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 i...@legalanalytics.co.uk wrote: Hi, Can anyone help with the following

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

2009-03-31 Thread LinkGuru
, not the element itself. You can access it like in an array: $(#dllViewSelector)[0].selectedIndex; On Mar 31, 7:51 am, LinkGuru i...@legalanalytics.co.uk wrote: Hi, Can anyone help with the following? With JQuery, I can't successfully grab the selected value from a drop-down. The alert just

[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

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

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