Using SSJS in CSJS is very handy and sometimes the only way to do what you need to do within an XPage.
Wednesday, November 16, 2011
Running SSJS from CSJS: Sometimes its the only way!
Last weekend I was working on some code and needed to pass two values to a client-side JavaScript function.
No problem except that one of the values for the function was going to be the ID of an XPage component. Since XPage ids are generated dynamically, I used the nifty getClientId() SSJS function to get the ID of the component but I ran that function in the Client-Side JavaScript to be run when a button was clicked.
Using SSJS in CSJS is very handy and sometimes the only way to do what you need to do within an XPage.
Using SSJS in CSJS is very handy and sometimes the only way to do what you need to do within an XPage.
Labels:
CSJS,
SSJS,
XPages Tip
Subscribe to:
Post Comments (Atom)
