This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes PHP and the fly likes PHP Ajax Livesearch Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Languages » PHP
Bookmark "PHP Ajax Livesearch" Watch "PHP Ajax Livesearch" New topic
Author

PHP Ajax Livesearch

Mahtab Alam
Ranch Hand

Joined: Mar 28, 2012
Posts: 354

I`m looking to implement the google`s autosuggest with php and ajax.I searched a lot on the web , but can`t find the solution i`m looking for.
I want that data to be looked is from the database not from the xml file.


http://www.mahtabalam.net , Oracle Java Programmer , Oracle SQL Expert , Oracle Java Web Component Developer
timo corn
Ranch Hand

Joined: Oct 26, 2013
Posts: 68

You must need a key-... event to get input values, Info here
api.jquery.com/keyup
api.jquery.com/keydown
.../keypress

Quote from another site:
keydown and keyup talk about which key has been changed. keypress tells which character that key represents

Then you need ajax, beforehand you get the input value (keys) from the form input field with $(this).val():
api.jquery.com/jquerypost

As an ocjp an easy task.


hth
Mahtab Alam
Ranch Hand

Joined: Mar 28, 2012
Posts: 354

Thank you timo for answering my questions .
Thanks again
Supun Lakshan Dissanayake
Ranch Hand

Joined: Oct 26, 2012
Posts: 135

What did you meant by LiveSearch

Dis you mean This
http://jqueryui.com/autocomplete/


Are you better than me? Then please show me my mistakes..
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: PHP Ajax Livesearch
 
It's not a secret anymore!