RPJD :)
Expand|Select|Wrap|Line Numbers
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <script language="JavaScript">
- function Parts()
- {
- var url="http://localhost:8080/Databases/parts.php";
- if(window.XMLHttpRequest)
- http = new XMLHttpRequest();
- else if (window.ActiveXObject)
- http = new ActiveXObject(Microsoft.XMLHTTP);
- http.onreadystatechange = function()
- {
- alert(http.readyState);
- if(http.readyState == 4)
- {
- alert(http.status);
- if(http.status == 200)
- {
- result = http.responseText;
- alert(result);
- }
- else
- {
- // + " " + http.statusText;
- }
- }
- }
- http.open("GET", url, true);
- http.setRequestHeader("text/xml");
- http.send(null);
- }
- </script>
- </head>
- <body>
- <FORM name="description" method="POST" action="">
- <p>
- <INPUT type="BUTTON" value="Parts" ONCLICK="Parts();">
- </p>
- <p>
- </body>
- </html>