Ajax asynchronously opens a url. how can this problem be displayed?-php Tutorial

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.