PHP Example – Auto-suggest – States The following example code demonstrates how to write a simple auto-suggest mechanism for US States using PHP. Client Code The client code is made up some HTML and some JavaScript. The JavaScript is called whenever the “onkeyup” event is triggered passing the keypress to the autosuggest function: HTML Here ..

Read more

ASP Example – Auto-suggest – States The following example code demonstrates how to write a simple auto-suggest mechanism for US States using ASP. Client Code The client code is made up some HTML and some JavaScript. The JavaScript is called whenever the “onkeyup” event is triggered passing the keypress to the autosuggest function: HTML Here ..

Read more

AJAX Response To retrieve the response data from the server, use either the “responseText” or “responseXML” property of the XMLHttpRequest object. The “responseText” Property Use the “responseText” property when the response from the server is not XML. The “responseText” property returns the response as a string: var response = xmlHttpRequest.responseText; The “responseXML” Property Use the ..

Read more