Skip to Content
Former Member
Sep 22, 2005 at 08:43 AM

Javascript code in Java Dynpage class


Hello everyone, I have Dynpage class and there is a button has been created in this class. When this button is clicked it will trigger two events onClick and onClientClick. Now I have two functions called onSave and onClientSave.

I need the JavaScript code in OnClientSave to be executed until the Java code in OnSave is finished.

The js script has been loaded when doInitialization() is called. The js function is name test(){alert();}. I have tried to call js function by using

TextView tv = new TextView("test()");



in doProcessAfterInput() or doProcessBeforeOutput(), but js code can not be executed.

As this class will be intergated with a Dynpage class I would not like to use JSPDynPage.

Can anyone give me a hint how to control the sequence? Thanks for early reply.

Kind regards.

Yantong Wang

Message was edited by: Yantong Wang