开发者

ajax auto comlete problem

Q:

I want to make autocomplete facility like the one exists in yahoo mail , when i write a mail address then i post it by(;) i see a list of mails begin with specific character , whe开发者_JAVA技巧n i tried the ajax auto complete i face a problem ,when i write a name and post it by(;)and begin to write the second name , it concatenate the first one with the expected instances of the second one in the auto complete list. i want the same action in yahoo mail how to do this. (no concatenation in the auto complete list)?


If you want a simple effective solution you should have a look at jQuery UI automcomplete It quite easy to implement and it allows you to format the result the way you want; changing, for example, the , in ; You can find some code here


You could use what Yahoo mail uses: http://developer.yahoo.com/yui/3/examples/autocomplete/ac_local.html http://developer.yahoo.com/yui/3/examples/autocomplete/ac_datasource.html

How to get the information from your database: http://developer.yahoo.com/yui/3/datasource/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜