Dear Friends,
I am writing an ajax app and I use an XML doc to cache a view.
For example,
Before switching to another view, i do
cache = getXMLDoc(document.getElementById("source").innerH TML);
getXMLDoc just creates a XML object and calls the loadXML method.
Then later when I switch back, I just load do a
document.getElementById("source").innerHTML = cache.xml
The problem is that sometime IE will strip the quotes off the
innerHTML and cause the loading to fail.
For example, if do:
document.getElementById("source").innerHTML = "<table
class='myClass'></table>";
when I get that value
(alert(document.getElementById("source").innerHTML ) it shows as:
<table class=myClass></table>
Then when I try to do a loadXML it fails becuase it expects a qoute.
Anyone know how to get around this?
Thanks,
-SJ