Hi,
I am using .getInstanceDocument to successfully access values from an instance
within script.
However, I don't know how to set a node value in my script, Here is what I have
tried thus far:
var modelElem = document.getElementById("theModel");
var instDoc =
modelElem.getInstanceDocument("variables");
var xmlSite =
instDoc.getElementsByTagName("currSite")[0];
xmlSite.textContent = 'fred';
modelElem.rebuild();
modelElem.recalculate();
modelElem.revalidate();
modelElem.refresh();
alert(xmlSite.textContent);
The alert displays the modified value, but the XForm does not. I guess that I
am doing something fairly simple wrong?
Best wishes
Mark
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support