problem regarding javascript in ops3.5

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

problem regarding javascript in ops3.5

Laxmi Narayana-3
Hi,
I am using ops 3.5.1.how to get <dummynumber2> value in javascript.
my model is like this:
<xforms:model id="main-model">
         <xforms:instance id="main-instance">
                 <dummynumber2>10</dummynumber2>
            </xforms:instance>    
</xforms:model>
       
in save button I written code like this.

 <xforms:group>
     <xforms:action ev:event="DOMActivate">                                     
        <xforms:load resource="javascript:testJS()"/>
        <xforms:send submission="submit-submission"/>
          </xforms:action>                   
  <trigger....here>
 </xforms:group>  
                   

in java script I written like this:

<xhtml:script language="javascript">
 function testJS()
        {
            alert("hi"+document.getElementById('main-model').getValue('dummynumber2'));
          }
</xhtml:script>
thanks in advance,
LaxmiNarayana.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws