Jump to content

digital-ether

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

digital-ether's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. As long as your web server can show a regular webpage, then it supports "AJAX". There is no server limitation, just the browser. AJAX uses basic HTTP, it is just a browser method where a new page is requested without reloading the current page. So you request a new page programmatically with JavaScript. Try something simple like: <script type="text/javascript"> var http = false; try { http = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { http = new XMLHttpRequest(); } function retrievewr(url) { alert(url); http.abort(); http.open('get', 'hello.php'); http.onreadystatechange=function() { if(http.readyState == 4 && http.status == 200) { alert(http.responseText); } } http.send(null); } </script> Then in your PHP file: hello.php have: <?php echo "hello AJAX!"; ?> If you use firefox, download the Firebug extension. It allows you to view XMLHttpRequests made.
  2. Your XMLHTTPRequest (XHR) Object Instance is a global. (GetServer) Every time you call Connect() you reset this Object. What happens is the XHR is canceled and a new one made - depending on browser. You need to create a new Instance for each XHR you make. Let each XHR complete, before reusing the Instance, or destroying it.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.