My AJAX doesn

Discussion in 'Website Creation' started by peter_sanders|2, Sep 10, 2011.

  1. I have the following AJAX on a page:
    //Browser Support Code
    function ajaxFunction()



    ajaxRequest.onreadystatechange = function()
    {
    if(ajaxRequest.readyState == 4)
    &n bsp; {
    document.getElementByID('centerFi eld').innerHTML = xmlhttp.responseText;
    }
    }
    var view = Document.GetElementById("wv");
    &nb sp;var query = "?view=" + view;
    ajaxRequest.open("GET", "wv.php" + query, true);
    ajaxRequest.send(null);


    }
    It is linked to centerfield, which is , to wv.php, which contains no errors, though it used to, and to a set of radio buttons. I can post more script where necessary, but I believe that all that will be necessary is this and the wv.php page, possibly.
     
  2. I do not know what you are asking but there is an error in two places in the code:
    remove the space in &nb sp;
    It should read  

    The code is the equivalent for Non Breaking SPace (a space/empty character) .
     

Share This Page