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 ?
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
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
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(/^\?/,'');
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
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/
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
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
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
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
10 matches
Mail list logo