Javascript args

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

Javascript args

Henk Visser
Hi there,

Is there a way to call a javascript function with Orbeon that take arguments? (Already I'm using the '<xforms:load>' tag to call a javascript function that takes no arguments, which works fine.)

Thanks and kind regards,

Henk
Reply | Threaded
Open this post in threaded view
|

Re: Javascript args

Alessandro  Vernet
Administrator
Hi Henk,

You can pass arguments to that function with xf:load, using AVTs. You can see an example of this on:

http://wiki.orbeon.com/forms/doc/developer-guide/xforms-javascript-integration#TOC-The-javascript:-protocol

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet