Communicating Steps –Gather information (possibly from HTML form) –Set up the URL –Open the connection –Set a callback method –Send the request function getCustomerInfo() { var phone = document.getElementById( phone ).value; var url = /cgi-local/lookupCustomer.php phone= + escape(phone); request.open( GET , url, true); request.onreadystatechange = updatePage; request.send(null); }
{}