• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

PHP Ajax Livesearch

 
Ranch Hand
Posts: 391
1
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 68
MyEclipse IDE PHP Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mahtab Alam
Ranch Hand
Posts: 391
1
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you timo for answering my questions .
Thanks again
 
Ranch Hand
Posts: 143
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What did you meant by LiveSearch

Dis you mean This
http://jqueryui.com/autocomplete/
 
    Bookmark Topic Watch Topic
  • New Topic