Please help Me in bellow the code:-
<?xml version="1.0" encoding="ASCII"?>
<html xmlns="
http://www.w3.org/1999/xhtml" xmlns:ev="
http://www.w3.org/2001/xml-events" xmlns:xforms="
http://www.w3.org/2002/xforms"> <head>
<title>Instance Data-To-XHTML/XForms Example</title>
<xforms:model id="auctionItems">
<xforms:instance id="data">
<urlLocation xmlns="">
<first-name></first-name>
<last-name></last-name>
<mth url="javascript:testJS()">
http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications</mth>
</urlLocation>
</xforms:instance>
</xforms:model>
<script type="text/javascript">
var testJS= function()
{
alert('This form submits to:'+document.getElementById('data'));
var model = document.getElementById("data");
alert(model);
//var instance = model.getInstanceDocument ("myInstance");
//var textElements = instance.getElementsByTagName("text");
}
</script> </head>
<body>
Auction Item Inventory
<xforms:input ref="instance('data')/first-name">
<xforms:label>First name:</xforms:label>
</xforms:input>
<xforms:input ref="instance('data')/last-name">
<xforms:label>Last name:</xforms:label>
</xforms:input>
<xforms:group>
<xforms:trigger>
<xforms:label>Show action</xforms:label>
<xforms:load ref="instance('data')//mth/@url" ev:event="DOMActivate"/>
</xforms:trigger>
</xforms:group>
</body>
</html>
Thanks,
Suryaprakash Raghuwanshi
------------------------------------------------------------------
Before printing, think about the environment