We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LiveSearch

Development and Programming

Simon-a's avatar
Simon-a
64 posts
19 years ago
Simon-a's avatar Simon-a

Hi,

I’m trying to make the livesearch fonction work in my website, but i guess I’m doing something wrong, and since the “js” has changed, I was wondering if someone has some “advices” to make it work

       
EE lover's avatar
EE lover
50 posts
19 years ago
EE lover's avatar EE lover

Paul Would you please update your tutorial. having live search would be a great feature.

There has been a new js file. But since I didn’t know how to use it I used the old one and now I’m getting notices:

Notice: Only variables should be assigned by reference in /…/core/core.functions.php(570) : eval()’d code on line 8


Would you please check the new JS and update the tutorial?

Thank you in advance =)

       
Dane Thomas's avatar
Dane Thomas
139 posts
17 years ago
Dane Thomas's avatar Dane Thomas

Old thread I know - but has anyone worked out a live search option that we can use.

I also just updated my site to a MSM and noticed that the Live search Extension (for CP) returns results for both sites - so I’l have to find a fix for that. Thats another issue though.

       
Jacobmiso's avatar
Jacobmiso
51 posts
17 years ago
Jacobmiso's avatar Jacobmiso

I’m also interested in this - what a cool addition this would be!! Is anyone working on an update?

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Hiya,

Sorry to drag this up again as well but was trying this today on a site and have it working in so much as it returns whatever I type in as a list which is what I want and I can even use the up and down arrows on the keyboard to select what I want. That is when it all goes wrong :-(

If I use the up and down arrows and then press enter on one of the suggestions then I am taken to :

http://www.mysite.com/index.php?q=text

whereas I would like to be taken to the same place as I would be taken if I instead just clicked on the link (this works) - something more like:

http://www.mysite.com/item/detail/text

Anyone any ideas how to get this to work. I know that the site that was originally referenced has now changed their Javascript file slightly but it does seem to still work except for the up and down of arrows part.

Any help would be greatly appreciated.

Best wishes,

Mark

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

As an update to this actually I am not even getting the word text being placed into the URL. If I started typing text say I only typetex and I see the item I want then if I arrow down to it then it places :

http://www.mysite.com/index.php?q=tex

which wouldn’t be of much use to me anyway as it wouldn’t find what I need. Does anyone know how you get this to work so that it makes it go to the correct page?

On the original site it works and I am pretty sure that there isn’t anything else clever going on with their site, well not from what I can see anyway.

Thanks for any help on this.

Best wishes,

Mark

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

Can someone just throw together a plugin for me so I don’t have to think, for crying out loud.

       
smartpill's avatar
smartpill
456 posts
17 years ago
smartpill's avatar smartpill

Just wondering if anyone managed to get this working again. :roll:

       
Daniel Millbank's avatar
Daniel Millbank
3 posts
about 17 years ago
Daniel Millbank's avatar Daniel Millbank

In search for something similar for EE, I saw that Wordpress has a great livesearch script.

Elliot Swan’s Better-Than-Live Search script for Wordpress

The coolest one I have ever seen is on prisjakt.nu. I am sure this could be something the EE staff might consider implementing for the next version (hint hint). 😊

       
Pascal Kriete's avatar
Pascal Kriete
2,589 posts
about 17 years ago
Pascal Kriete's avatar Pascal Kriete

With the help of Paul’s original code and the autocomplete plugin, I’ve made it work. [demo]

I’ll clean it up and make a plugin once the jquery docs are back up.

       
Daniel Millbank's avatar
Daniel Millbank
3 posts
about 17 years ago
Daniel Millbank's avatar Daniel Millbank

Amazing! You guys are an inspiration. Thank you!

       
First 5 6 7

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.