I need to be able to replace the entire document content with a response obtained from an ajax request.
I have tried assigning to document.body.innerHTML
and also tried using document.write()
.
While both of these are functional on desktop Safari, I need a solution for the iPhone/iPod Touch. Attempting to modify document.body.innerHTML
produces exception 7 and the document.write()
function is undefined on mobile safari.
I am essentially displaying an activity indicator while waiting for a form post to complete. I do not want safari to begin rendering the response until it completes in it's entirety as it could take some time to complete.