AJAX Search baby!

I was inspired by this cool AJAX Dictionary that was listed on Digg today so I modified the search for my this to be all ajaxified. It's actually pretty cool, and responsive.
Leave A Reply - 15 Replies
robert 2006-09-16 08:34am - robertgrundATyahoo_dot_com - Logged IP:


I like your search form very much. Could you send me the script?

perke 2006-11-19 09:15am - perke11_at_gmail.com - Logged IP:

this live thingy looks cool! anyway to get a hold of it?

gerald 2006-11-27 11:34am - gerald.pierce@... - Logged IP:

I like you search script can you send it to me.

Scott Baker 2006-11-27 11:57am - No Email - Logged IP:

It's just some javascript, just view the source of the page. It's nothing special.

Lina 2007-02-23 09:52am - mallahlina@... - Logged IP:

You search dictionary is great, can you tell me how you did and send me the script??

I would really appreciate your help

Thank you

jaime 2007-06-07 01:49pm - jaimeascanio@... - Logged IP:

Hello! I love your script! could you send it to me? im willing to donate if you want :)

Morten Skogly 2007-08-10 12:34pm - morten.skogly@... - Logged IP:

Hehe, fantastic captcha solution you've got with the baby and the kitting!

Love your script, it was supereasy to set up. I'm using it on the admin part of a google maps based app, listing points with option to edit or delete, all done with you ajax script, cudos to you, very clean stuff!

To those asking for the script, all you need on the client side is available right on the page, just view source and copy everything and paste it into a new document. But change /search.php to point to wherever you want it to reside on you server.

then you need to actually create the search.php and build a script that searches your mysql database. there are so many ways to do that, so i think it is a tall order to ask perturb to write a complete tutorial on that, but if you are a complete noob pop over to w3schools to learn the basics

but heres the skinny: the first line in the output of search.php needs to look something like this


where 12 would be the number of hits your sql query returned and 000.9 would be the time it took for your search to complete. I cheated a little because I didn't want to show the number of results or the time it took, so I just hardcoded that part (my javascript skills are not good enough to clean that stuff up I think). the rest of the php-script outputs pure html, something like <a href="">link to your article</a><br /> <a href="">link to your article</a><br /> <a href="">link to your article</a><br />

i might write a post about it on http://pappmaskin.blogspot.com, great stuff

ghuebgtz 2007-09-27 03:17am - ghuebgtz@... - Logged IP:

wow that's cool can you send me the script? :)

Colin 2007-11-27 09:19pm - info@... - Logged IP:

How come in FireFox I get a syntax error. Open your "Error Console" and see. How would you fix that?

Matt 2008-01-11 10:11am - No Email - Logged IP:

How about fixing this to work in IE7?

Antonius 2008-04-08 04:49am - Antonius.fabian.marcus@... - Logged IP:

Wow, you script rocks, could you plese send it to me? Thank you

Antonius 2008-04-08 04:51am - Antonius.fabian.marcus@... - Logged IP:

Wow, you script rocks, could you plese send it to me? Thank you

antonius 2008-04-08 04:52am - Antonius.fabian.marcus@... - Logged IP:

Wow, you script rocks, could you plese send it to me? Thank you

Brian 2008-07-17 09:52am - support@... - Logged IP:

Can you send me your code for the AJAX Search Baby?

Jonathan 2008-09-03 12:37pm - j.weisberg@... - Logged IP:

I would also love to see the source for this script.

All content licensed under the Creative Commons License