jQuery won't change inner HTML
script tag I have:
In the body of my document I have:
However, when I load the page it displays "a" instead of "AAAA".
I just realized that I needed to add a parenthesis and semicolon at the end to make it:
However, it is still not working.
I found the problem. I moved it ahead of some other code and then it worked. Apparently, the other code wasn't working which caused the page to freeze. However, I now have a new problem. I have:
var page = new XMLHttpRequest();
Putting $("p#test").html("AAAA"); ahead of page.open is what makes it work, so page.open seems to be causing the page to freeze. How do I get page.open to work properly?
I have been trying this in Internet explorer. I just tried this in Google Chrome and it got past page.open(), but instead froze at XMLdata.getElementsByTagName("BODY");
I changed it so I now use page.responseText instead of using XML but page.responseText returns an empty string instead of the page contents.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread