Thursday, April 5, 2012

Invoking onClick enent in SSJS in Xpage

We can invoke the Event of a button using SSJS...

Normally we used CSJS for this action.

Code as follows

document.getElementById("ID").click()


But same we can do in SSJS also...


getCompoenent("ID").getOnclick()

1 comment:

  1. The SSJS "getOnclick" doesn't seem to exist anywhere. I've tried several variations, and keep getting error messages.
    Can you show it in a working example?

    Thanks, in advance!

    ReplyDelete