jQuery autocomplete example -


where can download example?
http://jqueryui.com/demos/autocomplete/#remote

jquery doesn't make php available, don't know how structure data or how use it.

i don't see download button on page or instructions on how php should built integrate jquery ui, i'm not sure why website doesn't make easy developers.

here's example of page_load regular aspx works autocomplete. getscacs method returns string representing json array.

    protected void page_load(object sender, eventargs e)     {         // clear out buffer         response.clearheaders();         response.clearcontent();         response.clear();          // not cache response         response.cache.setcacheability(httpcacheability.nocache);          // set content type , encoding json         response.contenttype = "application/json";         response.contentencoding = encoding.utf8;          string query = request["term"];          string scacs = getscacs(query);         response.write(scacs);          // flush response buffer         response.flush();          // complete request.  note: not use response.end() here,         // because throws threadabortexception, cannot caught!         httpcontext.current.applicationinstance.completerequest();     } 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -