how to invoke Custom Script from other javascript
example:
invoque custom script from “onclick” of command button
CAF.model(‘#{activePageBean.clientIds[‘idOfCustomScript’]}’).raise();------- not work
this is to reuse a script
thanks!
how to invoke Custom Script from other javascript
example:
invoque custom script from “onclick” of command button
CAF.model(‘#{activePageBean.clientIds[‘idOfCustomScript’]}’).raise();------- not work
this is to reuse a script
thanks!
The various ‘Script’ controls do not have a client-side model that you can reference by id.
If you want to re-use javascript functions, you would want to define those functions in either an external javascript file or in the value of a ‘Script Block’ control and just reference those shared functions by name wherever they are needed.