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


//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

Hi there,

Welcome to the forums :slight_smile:

I’m afraid you haven’t provided enough information for us to help you.

Could you post enough code for me to run on my PC and reproduce your issue (this will include some XML, too)

Here’s are some tips on how to do this.