Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

JavaScript Object Suggestion Recognition Issue

$
0
0

Using the code below:

var hr =new XMLHttpRequest();

Will not give me properties of XMLHttpRequest. If I do it like this:

var hr = XMLHttpRequest;
hr.onreadystatechange

It does, but not the way I want to use it. The only work around I have right now is using it the way I don't want to ( var hr = XMLHttpRequest; )and switching it to ( var hr = new XMLHttpRequest(); ) when I finish. Also, I'm not able to get .innerHTML and other properties after the () like below:

document.getElementById("status").innerHTML = return_data;

WebMatrix loves JavaScript. WebMatrix offers code completion, formatting, and validation for JavaScript—the tools you need to build a great web site. hmmmm....

Do not get me wrong. I LOVE WebMatrix and use it every day to code websites, but this seriously needs to be improved ASAP.


Viewing all articles
Browse latest Browse all 27852

Trending Articles