Hi Guys, I had some JavaScript written to help with getting an xml document into a form field. The code is below. Works in all browsers except IE and Safari (Safari not tested on Mac)
I think the problem is related to XMLSerializer. I have have had a go at fixing it but cant, the chap who creatyed the code is mad busy. Would anyone be able to point me in the right direction.
The code which I think is the problem is below.
Many thanks
Jon
//get the quotes xml only
var $quote = $(msg).find("Quotes");
var quoteXml = "";
//loop each element
$.each($quote, function (index) {
//append to local variable
quoteXml += (new XMLSerializer()).serializeToString($quote[index]);
});
//assign to form hidden field