Ajax asynchronously opens a url. how can it be displayed? rt? I open a url with an asynchronous request. the display page edited by php is displayed on the current webpage, use the browser debugging tool to display 200. the request is successful, but
Right side
There is nothing to mark. the debugging tool has a preview that can display the content I want to display, but it is not displayed on the webpage,
For help, how can I display it on a webpage,
Added
Header ('content-type: text/html; charset = utf-8 ');
No effect
$ ('Showallnodes '). onclick = function (){
Xmlhttp. open ('GET', 'node/allnodes. php', true );
Xmlhttp. onreadystatechange = showclass;
Xmlhttp. send (null );
}
Function showclass (){
If (xmlhttp. readystate = 4 ){
If (xmlhttp. status = 200 ){
$ ('Showmenu '). innerHTML = xmlhttp. responseText;
}
}
}
Thank you for your help.
Reply to discussion (solution)
I found the cause, which is case-sensitive. The s of readyState is case-sensitive.