Re: Popup New Window With A Button in Tapestry

2007-07-23 Thread teacup

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.
 
 
 
 teacup wrote:
 Hello, members:
 
 Mostly we use a Javascript to pop up a new window. I am writing a
 Tapestry
 application, where I want to pop up a new Window (say popup.html). The
 popup.html page will have its popup.page and popup.java too. The parent
 page
 (say parent.html) has a form where user enters a string in a text field
 (or
 checks on several check boxes) and then hit a button (say Submit). This
 button will pop up a new window popup.html, but the problem is I want to
 pass the string value (or check box values) from the form to popup.java
 so
 that this class sets up a certain variable (say list) for later use -
 e.g.
 when user enters some more data on popup.html and hit another button (say
 again Submit) then a listener method in popup.java will take all values
 from
 popup.html form and then use 'list' for data processing.
 
 How do I pass data from parent.html to popup.java? I know I can store
 'list'
 in the user's session that popup.java can retrieve. But as soon as the
 user
 hits 'Submit' button on parent.html page, a new window will open and no
 listener method in parent.java will be called (that can save user's
 entries
 - string or check box values), right? I want to use a button, not a
 hyperlink, on parent.html page.
 
 So how do I solve my problem of saving user's entries in parent.html for
 popup.java to use? Is there any other way to do this besides saving it in
 user's session? Thanks.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Popup-New-Window-With-A-Button-in-Tapestry-tf4124923.html#a11742483
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Popup New Window With A Button in Tapestry

2007-07-22 Thread teacup

Hello, members:

Mostly we use a Javascript to pop up a new window. I am writing a Tapestry
application, where I want to pop up a new Window (say popup.html). The
popup.html page will have its popup.page and popup.java too. The parent page
(say parent.html) has a form where user enters a string in a text field (or
checks on several check boxes) and then hit a button (say Submit). This
button will pop up a new window popup.html, but the problem is I want to
pass the string value (or check box values) from the form to popup.java so
that this class sets up a certain variable (say list) for later use - e.g.
when user enters some more data on popup.html and hit another button (say
again Submit) then a listener method in popup.java will take all values from
popup.html form and then use 'list' for data processing.

How do I pass data from parent.html to popup.java? I know I can store 'list'
in the user's session that popup.java can retrieve. But as soon as the user
hits 'Submit' button on parent.html page, a new window will open and no
listener method in parent.java will be called (that can save user's entries
- string or check box values), right? I want to use a button, not a
hyperlink, on parent.html page.

So how do I solve my problem of saving user's entries in parent.html for
popup.java to use? Is there any other way to do this besides saving it in
user's session? Thanks.
-- 
View this message in context: 
http://www.nabble.com/Popup-New-Window-With-A-Button-in-Tapestry-tf4124923.html#a11730507
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]