Re: [jQuery] Function to enumerate the querystring?

2006-11-01 Thread Luke Lutman
The attr() method returns a string, rather than the jQuery object, so you won't be able to chain it. You could modifiy the $.query function and pass in the value of q ... like so: jQuery.query = function(q) { var r = {}; q = q.replace(/^\?/,''); // remove the leading ?

Re: [jQuery] Function to enumerate the querystring?

2006-11-01 Thread Mark Gibson
Chris W. Parker wrote: On Tuesday, October 31, 2006 10:46 AM Luke Lutman said: Have a look at this recent thread :-) http://www.nabble.com/method-plugin-for-getting-query-string-vars--tf248 1232.html#a6919130 I read through this and tried to implement your first suggestion but I notice

Re: [jQuery] Function to enumerate the querystring?

2006-11-01 Thread Klaus Hartl
Chris W. Parker schrieb: On Tuesday, October 31, 2006 10:46 AM Luke Lutman said: Have a look at this recent thread :-) http://www.nabble.com/method-plugin-for-getting-query-string-vars--tf248 1232.html#a6919130 I read through this and tried to implement your first suggestion but I

Re: [jQuery] Function to enumerate the querystring?

2006-11-01 Thread Klaus Hartl
Luke Lutman schrieb: The attr() method returns a string, rather than the jQuery object, so you won't be able to chain it. You could modifiy the $.query function and pass in the value of q ... like so: jQuery.query = function(q) { var r = {}; q = q.replace(/^\?/,'');

Re: [jQuery] Function to enumerate the querystring?

2006-11-01 Thread Luke Lutman
Klaus Hartl wrote: That won't work for two reasons: $(this).attr('href') most likely returns a complete url, thus there is no leading ?. Oops! Yes, of course. Secondly if you have a parameter like number=0, it won't be put into the hash because after parseFloat val == 0 which evaluates to

Re: [jQuery] Function to enumerate the querystring?

2006-11-01 Thread Chris W. Parker
On Wednesday, November 01, 2006 11:59 AM Klaus Hartl said: See here for a demo with these things fixed: http://stilbuero.de/demo/query.html?foo=bar 404 Chris. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Function to enumerate the querystring?

2006-11-01 Thread Klaus Hartl
Chris W. Parker schrieb: On Wednesday, November 01, 2006 11:59 AM Klaus Hartl said: See here for a demo with these things fixed: http://stilbuero.de/demo/query.html?foo=bar 404 http://stilbuero.de/demo/jquery/query.html?foo=bar ___ jQuery

Re: [jQuery] Function to enumerate the querystring?

2006-11-01 Thread Mark Gibson
Chris W. Parker wrote: On Tuesday, October 31, 2006 10:46 AM Luke Lutman said: Have a look at this recent thread :-) http://www.nabble.com/method-plugin-for-getting-query-string-vars--tf248 1232.html#a6919130 I read through this and tried to implement your first suggestion but I notice

[jQuery] Function to enumerate the querystring?

2006-10-31 Thread Chris W. Parker
Hello, Is there a jQuery function to enumerate the key/value pairs in a querystring? I wasn't able to find one with the Visual jQuery website and instead of reinventing the wheel I thought I'd query the list. Thanks, Chris. ___ jQuery mailing list

Re: [jQuery] Function to enumerate the querystring?

2006-10-31 Thread Chris W. Parker
On Tuesday, October 31, 2006 10:46 AM Luke Lutman said: Have a look at this recent thread :-) http://www.nabble.com/method-plugin-for-getting-query-string-vars--tf248 1232.html#a6919130 I read through this and tried to implement your first suggestion but I notice that everything takes