Your code won't work because the element returned by
getElementById('buttonid') is a <span> element. Clicking the span won't
cause the button to be activated.
Maybe try dispatching a DOMActivate to the button control instead. See
the doc here:
http://www.orbeon.com/ops/doc/reference-xforms-2#xforms-javascript-events-Erik
Alex Chew wrote:
>
> Hi,
> I want to embed one of my OPS xforms page in a iframe and try to active
> the button with javascript.
> i tried to use javascript
> opsframe.document.getElementById('buttonid').click() but failed.
> The result html of xforms transformed by OPS just with an id like
> 'xforms-element-25' and it cannot specified manually.
>
> How can I active the button on xforms page from javacript in parent IFrame?
> Thanks in advance.
>
> Alex
>
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/--
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