error on XMLHttprequest
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1

Thread: error on XMLHttprequest

  1. #1
    Join Date
    Apr 2011
    Posts
    2

    error on XMLHttprequest

    Code:
    var obj;
    
    function ProcessXML(url) {
      // native  object
    
      if (window.XMLHttprequest) {
        // obtain new object
        obj = new XMLHttpRequest();
        // set the callback function
        obj.onreadystatechange = processChange;
        // we will do a GET with the url; "true" for asynch
        obj.open("GET", url, true);
        // null for GET with native object
        obj.send(null);
      // IE/Windows ActiveX object
      } else if (window.ActiveXObject) {
        obj = new ActiveXObject("Microsoft.XMLHTTP");
        if (obj) {
          obj.onreadystatechange = processChange;
          obj.open("GET", url, true);
          // don't send null for ActiveX
          obj.send();
        }
      } else {
        alert("Your browser does not support AJAX");
      }
    }
    Why its displaying a error on XMLHttprequest

    Sorry Find the error XMLHttprequest should be XMLHttpRequest
    Last edited by ronty; April 20th, 2011 at 08:51 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center