I have a simple html page i would like to load using your HtmlhttpRequest.js and form post However .. The problem i am running into .. It is not loading the entire html ..
It is loading only the body tag and on .. .. in the copyContet method the doctext has the full document ie (<html><head>...</head><body>)
however during the process of the method I am trying to take the content (entire one) and trying to assing it to a Div .. and it keeps throwing up a runtime exception
I have even tried to see if i can get the document from the iframe it uses to submit and assign it another iframe i have on the parent page , it gives object not supported .
These request are on the same domain
Any help in pointing me in the right direction would be great
if (src && src.innerHTML) dest.innerHTML = src.innerHTML; throws a run time error
2) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 202.137.--.--
Posted:
Er... you can't actually load any content from the <head> into a <div>. It's just not legal by the HTML specs.
If you want to load an entire page into another page like an IFRAME... well, use an IFRAME!