calling a javascript function on button click

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

calling a javascript function on button click

garima.singh
Hi All!!
i am quite new to orbeon x-forms.Can someone let me know, how do i actually call a javascript function on button click, in an xsl file.??

Thanks in advance!!
Regards,
Garima



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

Re: calling a javascript function on button click

Hank Ratzesberger

Garima,

XForms is a specification that is meant to be implemented
by an underlying system which is not necessarily JavaScript.

Rather than call JavaScript (C, Java, etc), XForms actions
are specified for various events like DOMActivate.

There are extensions to the spec. to provide access to the
underlying system, but these are optional.

All that said, Alex posted a suggestion to this list a
few months ago that outlined how JavaScript could be
executed as a trigger.

Sorry, I cannot locate that message and don't know if
it is currently implemented.

In the mean time, you should look into the XForms events
mechanism, which is how JavaScript will be called if
the feature gets implemented.

AFIK, you are not prevented from running JavaScript
with a regular html button and the On...() functions,
but accessing the Instance data is not yet available.

Cheers,
Hank

Hank Ratzesberger
UCSB

Quoting [hidden email]:

> Hi All!!
> i am quite new to orbeon x-forms.Can someone let me know, how do i actually
> call a javascript function on button click, in an xsl file.??
>
> Thanks in advance!!
> Regards,
> Garima
>
>




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




--
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