Pass the Xform:group value="" value into javascript

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Pass the Xform:group value="" value into javascript

Suryaprakash
        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
Reply | Threaded
Open this post in threaded view
|

Re: Pass the Xform:group value="" value into javascript

Hasan
Here is the running sample you can walk through

https://gist.github.com/817811



Hasan
Regards,
Hasan