Hmm, I must have done something wrong when I copied the new build as I
tried
copying again and everything works fine now :)
Best wishes
Mark
On Mon, Jan 11, 2016 at 10:58 am, Mark Seaborne <[email protected]> wrote:
Hi,
I have just moved to rev 628 and some script that had been working fine now
returns the error:
ReferenceError: Can't find variable: XsltForms_context
I am assuming that it is related to the use of .getInstanceDocument() in
the code. Is my code out-of-date in some way?
Best wishes
Mark
Here is a test form that gives me the error:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="../xsltforms/xsltforms.xsl" type="text/xsl"?>
<?xsltforms-options debug="yes"?>
<?css-conversion no?>
<html xmlns = "http://www.w3.org/1999/xhtml"
xmlns:xf = "http://www.w3.org/2002/xforms"
xmlns:ev = "http://www.w3.org/2001/xml-events" >
<head>
<title> Test </title>
<script type = "text/javascript" >
<![CDATA[
function getXML() {
var modelElem = document.getElementById("theModel");
xmlDoc = modelElem.getInstanceDocument("content");
}
]]>
</script>
<xf:model id = "theModel" >
<xf:instance id = "content" >
<doc> Hello </doc>
</xf:instance>
<xf:action ev:event = "xforms-ready" >
<xf:load resource = "javascript:getXML()" />
</xf:action>
</xf:model>
</head>
<body>
<p><xf:output ref = "instance('content')" /></p>
</body>
</html>------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support