Bug fix for getJSON call
Hi,
This is an awesome plugin! But there's a bug in the keyChange
function -- it doesn't construct the URL correctly if the URL
already contains GET parameters. To fix this, find this line:
$.getJSON(req_string+"?"+opts.queryParam+"="+encodeURIComponent(string)+limit+opts.extraParams, function(data){
And replace it with this:
$.getJSON(req_string,
opts.queryParam+"="+encodeURIComponent(string)+limit+opts.extraParams,
function(data){
Then jQuery will automatically add either a ? or a & as appropriate.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Joe Mocker on 02 Sep, 2011 06:24 PM
I think Drew has a provision for this with the extraParams option.
So doing something like this is wrong:
This is how you should do it