I am new to Javascript. I have a multi-dimensional array that I want to parse through, and dump out xml tags. For example, the array is of type
arr["fname1"][2] = param1 ;
I want to dump out xml tags like-
<fname>fname1</fname>
Once that is done, my final goal is to send this string of xml tags using jQuery.ajax(), like this
var xmlDocument = [create xml document];
$.ajax({
url: "page.php",
processData: false,
data: xmlDocument,
success: handleResponse
});
How do I go about doing this? Please advice. Thanks!
param1used for and how do you come up with the<fname>tag?