1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Ajax error: "System error: -1072896748"

Discussion in 'JavaScript' started by NoamBarz, Aug 15, 2007.

  1. #1
    Has anyone heard of this system error ("System error: -1072896748") ?

    I'm attaching my Ajax functions. Maybe there is a problem there.

    //-------------------------------------------------------------------------------------------------------
    function DisplayContent(httpRequest, element) {
    var elem = document.getElementById(element);
    if (httpRequest.readyState == 4) {
    if (httpRequest.status == 200) {
    elem.innerHTML = httpRequest.responseText;
    } else {
    alert('There was a problem with the request.');
    }
    }

    }
    //-------------------------------------------------------------------------------------------------------

    //-------------------------------------------------------------------------------------------------------
    function makeRequest(url, element) {

    var httpRequest;

    if (window.XMLHttpRequest) { // Mozilla, Safari, ...
    httpRequest = new XMLHttpRequest();
    if (httpRequest.overrideMimeType) {
    httpRequest.overrideMimeType('text/xml');
    }
    }
    else if (window.ActiveXObject) { // IE
    try {
    httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch (e) {
    try {
    httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
    }
    catch (e) {}
    }
    }


    if (!httpRequest) {
    alert('Giving up :( Cannot create an XMLHTTP instance');
    return false;
    }
    httpRequest.onreadystatechange = function() { DisplayContent(httpRequest, element); };
    httpRequest.open('GET', url, true);
    httpRequest.send(null);

    }
    //-------------------------------------------------------------------------------------------------------


    Thank you for your help.
     
    NoamBarz, Aug 15, 2007 IP
  2. nhl4000

    nhl4000 Well-Known Member

    Messages:
    479
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    110
    #2
    I did a Google search and found this. Could be useful, I don't know. I don't know AJAX.
     
    nhl4000, Aug 18, 2007 IP