Is there a way to update the entire document content with a response from an ajax request?
I've tested out using document.body.innerHTML
and document.write()
, which both work on desktop Safari. However, I'm looking for a solution that will also function on iPhone/iPod Touch. Unfortunately, modifying document.body.innerHTML
throws exception 7 and document.write()
is undefined on mobile safari.
The goal is to show an activity indicator while waiting for a form submission to finish. I want to prevent safari from rendering any part of the response until it's fully loaded, as this process may require some time.