I am writing an ajax application which sends a whole form in GET variables to a page and then replaces the div in which the original form was placed with a new, modified form. The only part which doesn't appear to work is replacing the original form with the output of the page. I'm using innerhtml to replace the divs which I know has "problems" in Internet Explorer, I recieve an unknown runtime error, but the whole script works in Firefox. I've used innerhtml before and it works fine and it works fine now as long as I don't try and put html into the div, plain text works. I would like someone to explain in extremely simple terms for me and everyone else who will come across this why there is a problem and how it can be worked around.
I would like a simple fix which I can write quickly, I don't want to struggle writing a DOM script which will take me days to make it work for any html. There are functions out there already written, like 'betterinnerhtml', but the latest build gives an error.
Could someone please provide a definitive solution to this most annoying of problems?
