What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Ajax Help...

Ajax Help...
Author: Message:
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
35 / Male / Flag
Joined: Mar 2004
RE: Ajax Help...
the basic idea behind it is

you add an event listener to the testbox ( on the keypress event)
in that callback you use xmlhttprequest to pull the data from the server and then you display it in a div under the textbox :)

theres quite a few premade scripts of this already :)

if you want to use jquery theres a plugin to do this :)

download jquery
download jquery.suggest

then add this to your page (assuming the search box id is suggest)

code:
$(function($){

$("#suggest").suggest("files/search.php",{
onSelect: function() {alert("You selected: " + this.value)}});

}

[Image: dt2.0v2.png]      Happy Birthday, WDZ
12-16-2007 10:07 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Ajax Help... - by lordy on 12-16-2007 at 10:07 AM
RE: Ajax Help... - by lordy on 12-16-2007 at 08:53 PM
RE: Ajax Help... - by -dt- on 12-16-2007 at 10:07 PM
RE: Ajax Help... - by lordy on 12-17-2007 at 08:33 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On