Thanks for the help! I wrote some messy code to accept the weblog parameter which did not work so I hardcoded the weblog_id into the plugin as a temp fix – I’ve replaced it with your code and it’s working great.
I had a problem with IE but it was fixed by downloading the most recent version of the plugin (oops!)
Any thoughts on how to get this working in two different search fields would be great – but in the meantime, this is up & working well on my site. Thanks again!
Unfortunately, I can’t reproduce the problem. Here’s my setup:
// HTML snippet
<input type="text" name="search_blog" id="search_blog" value="" placeholder="Search Blog..." size="18" maxlength="100" style="width: 140px;" />
<input type="text" name="search_about" id="search_about" value="" placeholder="Search About..." size="18" maxlength="100" style="width: 140px;" />
// Javascript Snippet
$('#search_blog').livesearch('http://localhost/search/livesearch_blog/', {width: 200, center_results: true});
$('#search_about').livesearch('http://localhost/search/livesearch_about/', {width: 200, center_results: true});
Anything else you can tell me about the error?
seems i’m having a problem with this that noone else is having. I’m having a hard time troubleshootin it.
the livesearch works, it displays the “live” results, but the hyperlink for those results looks like this:
http://www.domain.com/index.phpmy_article_shortname
there is no slash between index.php and the rest of the url.
what could be causing this? why is it not getting the correct path, or where do I find this code to fix it?
thanks for any help on this!
Kevin.
Hey Kevin,
The culprit is most likely your weblog path setting.
Admin > Weblog Administration > Weblog Management > Edit Preferences > Path Settings
The weblog url and/or the comment url should point to the proper location (you can use the link parameter to tell the plugin which one to use, by default it’s the weblog url).
Make sure they have a trailing slash on them as well.
Let me know if that solves it for you, Pascal
Hi, I am having a bit of trouble with the plugin because I’m loading jQuery from the google APIs page (yes, to save bandwith :D) like so:
I load the JS from http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js
Now everything works great in Safari but Firefox won’t let me perform the cross-domain AJAX call and I get this error message:
Security Error: Content at http://mydeejays.com/index.php/list may not load data from http://www.mydomain.com/index.php/search/livesearch/d/?q=d&limit=10×tamp=1231105195050.
Error: uncaught exception: [Exception… “Access to restricted URI denied” code: “1012” nsresult: “0x805303f4 (NS_ERROR_DOM_BAD_URI)” location: “http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js Line: 28”]
I would really like to load jQuery from Google so is there a way around this?
I should probably mention that in order to call the Plugin I use the following:
$('#keywords').livesearch('{site_url}index.php/search/livesearch/', { width: '275', center_results: true });
Thanks, Max
Indeed it is not the problem because if I load it from the same domain it still gives me the same error and yes it is the www error. Well although I could force the www I am not a big fan of this. Isn’t there any other workaround?
Thanks so much slapshotw for troubleshooting this so fast!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.