CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 1 of 1

Thread: error on XMLHttprequest

  1. #1
    Join Date
    Apr 2011

    error on XMLHttprequest

    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"GET", url, true);
        // null for GET with native object
      // IE/Windows ActiveX object
      } else if (window.ActiveXObject) {
        obj = new ActiveXObject("Microsoft.XMLHTTP");
        if (obj) {
          obj.onreadystatechange = processChange;
"GET", url, true);
          // don't send null for ActiveX
      } 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

On-Demand Webinars (sponsored)