Is it the proper way of doing? or any other process ?
<head>
<script type="text/javascript">
<![CDATA[
<b> function ulrWindow(){
alert('I want to pass this <xforms:output ref="Demo-form-data"/>');
close()</b>
}
]]>
</script>
<title>Survey Form Register</title>
<p:input name="data" href="#instance"/>
<xforms:model>
<xforms:instance id="main">
<xi:include href="input:data"/>
</xforms:instance>
<xforms:instance id="script">
<script url="javascript:close()"/>
</xforms:instance>
</xforms:model>
</head>
<body>
<br/><br/><br/><br/>
<div class="content">
<br/><br/><br/><br/>
<center>
Thank you , for submitting the Application
<xforms:group ref="friend" >
<xforms:output ref="Demo-form-data"/>
</xforms:group>
</center>
<center>
<xforms:trigger>
<xforms:label>Close</xforms:label>
<xforms:load resource="javascript:ulrWindow()" ev:event="DOMActivate" />
</xforms:trigger>
</center>
</div>
</body>
</html>
Thanks,
Suryaprakash Raghuwanshi
------------------------------------------------------------------
Before printing, think about the environment