All, We need to control some xforms:input field with our JavaScript and we are not lucky do it unfortunality. Here is the xforms code declared within the view -- xforms code -- <xforms:input id="idselected" ref="instance('instance')/temp/id"/> Here is the HTMl generated by OPS <span id="idselected" class="xforms-control xforms-input"> <span class="xforms-date-display"></span> <input type="text" name="idselected" value="" class="xforms-input-input xforms-type-string"> <span class="xforms-showcalendar xforms-type-string"></span> </span> And finally here is the javascript wrote by us within the view. -- javascript code for html button onclick (no xforms) -- document.getElementById('idselected').value = 'd2634e3'; This code should change the value of input tag (third line) but no change is performed and no JS errors are reported by the IE. I would like to know if we are doing something wrong or if there is some problem in OPS. Thanks in advance, Claudio Delgado Software AG Factory Valparaíso Chile -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Hi Claudio,
What you are doing seems just fine. I have here an example (attached) which does this and that runs fine in the sandbox. I tested this with a recent nightly build. If you have a case where this does not work for you, please send us a test case that we can run in the sandbox. I hope that this will help. Alex On 5/19/06, Claudio Delgado <[hidden email]> wrote: > > > > All, > > We need to control some xforms:input field with our JavaScript and we are > not lucky do it unfortunality. > > Here is the xforms code declared within the view > > -- xforms code -- > > <xforms:input id="idselected" > ref="instance('instance')/temp/id"/> > > Here is the HTMl generated by OPS > > <span id="idselected" class="xforms-control xforms-input"> > > <span class="xforms-date-display"></span> > > <input type="text" name="idselected" value="" class="xforms-input-input > xforms-type-string"> > > <span class="xforms-showcalendar xforms-type-string"></span> > > </span> > > And finally here is the javascript wrote by us within the view. > > -- javascript code for html button onclick (no xforms) -- > > document.getElementById('idselected').value = 'd2634e3'; > > > This code should change the value of input tag (third line) but no change is > performed and no JS errors are reported by the IE. > > I would like to know if we are doing something wrong or if there is some > problem in OPS. > > Thanks in advance, > > Claudio Delgado > > Software AG Factory > > Valparaíso Chile > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws input-javascript-1.xhtml (1K) Download Attachment
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |