Sorry, I don't have code like this handy, but the steps would be:
- your submit button or form listener sets a flag/data on the Home page
- the home page renders the response to the submit
- the home page checks the flag and conditionally includes javascript
to open the Popup page from onLoad
Your Popup.java will implement IExternalPage to make it easy to pass
the data you mention in the link generated by the ExternalService.
So it's like using PopupLink on ExternalLink but put it on onLoad.
Cheers,
Nick.
teacup wrote:
How do you include a popup javascript (say popup.js) in the response from the
listener method in Home.java? In Home.html you press a 'Submit' button that
fires the listener in Home.java, but I am not sure how the listener return a
javascript in response that will popup a new window. Please explain. A
piece of code will be much better. Thanks.
Nick Westgate wrote:
Handle the submit and conditionally include popup javascript in the
response.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]