I have the following JavaScript code:
myFrame.src = pathToCourseContents + "/otherComponents/myData.htm";
After this line is executed:
myFrame.src equals "http://myServer.com/otherComponents/myData.htm"
If I put this URL address into FireFox I do get a web page with information coming up.
What I'm trying to get is the contents of myData.htm in the form of a string.
I thought this would work:
var myString = myFrame.contentWindow.document.body.outerHTML
but myFrame.contentWindow appears to be blank.
What am I doing wrong?
Is there JavaScript code that will work to get the html content in the form of a string?