Does anybody here have any experience with AJAX? Here's what I'd like to do. I want to create a dropdown box somewhat similar to what Google has on their search box: something that when data is typed, it looks up and returns the results from a database. I want to force someone to enter on what returns from the database... no free text allowed.
AJAX experience?
Collapse
X
-
Tags: None
-
Re: AJAX experience?
Adam I think scriptaculous will do this for you.
Autocomplete docs:
I've played with this a little bit and it seems relatively easy you just include the .js file in your header and can call the functions, etc, it has some really slick looking stuff built into it. Dont know how easy it is to integrate with vBulletin but I can try and look at this with you if you want. I have to work all weekend and then am going to be in Hawaii next week so I might be MIA for a bit, but check out the site above, it is pretty sweet and a good starting point. -
Re: AJAX experience?
Dude, I played with that autocompleter for maybe 3 hours and still couldn't get it working right. Do you have any experience with it? I got it pulling results from a plain text file, but it wouldn't pull anything from my php. I even set the php file to do nothing but output the exact static data that the txt was outputting, and no luck. I suspect it has something to do with the http content-type or other headers, but everything I've tried hasn't worked.Comment
-
Re: AJAX experience?
jQuery mi amigo. Also to tweak it with any JS library you use use a mouseenter/mouseleave event to make sure that if they didn't select and item in the list that your text box remains empty.
The sailors of the United States Navy are among the most disciplined, devoted, and well-trained fighting men the world has ever known. They drink gasoline and piss fire, The spit bullets and shit bombs, and will swim across the ocean with a knife in their teeth just for the chance to carve up those that threaten their homeland.Comment
-
Re: AJAX experience?
I figured it out. I wasn't able to get the search bar style going but I figured something out w AjaxComment
[ms] Statistics
Collapse
Topics: 191,695
Posts: 1,236,776
Members: 53,126
Active Members: 76
Welcome to our newest member, Sacigyan.
Comment