I work disconnected (no asp nor php etc...), with formsplayer
What I want to do is to change dynamically (script javascript)
the source of the model instance.
I thougth about Something like:
<xforms:model id="myModel" >
<xforms:instance id="myData" src="Data/page1.xml"></xforms:instance>
</xforms:model>
....
<script for="trChangeInstance" event="DOMActivate" language="JScript">
ChangeModelInstance();
function ChangeModelInstance()
{
var theModel = document.getElementById("myModel");
var theInstance = document.getInstanceElement("myData");
//...
//Change source to page2.xml
//...
theModel.refresh();
}
</script>
<xf:trigger id="trChangeInstance">
<xf:label>Change instance source</xf:label>
</xf:trigger>
But I didn't manage to do it
does anyone have an idea?
thank in advance!

