Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Passing back and forth parameters to modal browser windows

Reply
Thread Tools

Passing back and forth parameters to modal browser windows

 
 
Carlos Alejandro Pérez
Guest
Posts: n/a
 
      06-08-2005
hi
I need to perform this sequence:
- a webform A calls another webform B. Webform B should be a modal one
- when data is entered in webform B, the user chooses close window
- the data must be captured and processed by webform A, if possible,
*without* clicking on a button to force this.

I know I should use IFrames. Can any1 here give me a clue regarding this?
Can the application object be used to fire events automatically in webform A
when the user closes webform B?

TIA,

Carlos


 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      06-08-2005
Carlos,

I am not sure how IFrames help you to make a modal dialog. The only way to
produce one is to call javascript function showModalDialog on client side.
The scenario is like this:

1. Form A client-side calls showModalDialog("FormB",...);
2. Form B opens in a modal window.
3. User closes Form B. Before closing, Form B client side should save the
data in window.returnValue object.
4. Form A client-side gets the object with Form B data as a result of the
showModalDialog("FormB",...); call.
5. Form A client-side puts Form B data into hidden input fields.
6. Form A client-side calls FormA.submit() to postback to the server.
7. Form A server-side gets the data from the hidden inputs.

Eliyahu

"Carlos Alejandro Pérez" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> hi
> I need to perform this sequence:
> - a webform A calls another webform B. Webform B should be a modal one
> - when data is entered in webform B, the user chooses close window
> - the data must be captured and processed by webform A, if possible,
> *without* clicking on a button to force this.
>
> I know I should use IFrames. Can any1 here give me a clue regarding this?
> Can the application object be used to fire events automatically in webform

A
> when the user closes webform B?
>
> TIA,
>
> Carlos
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JNI: passing Objects containing non-primitive types back and forth bernd Java 1 06-13-2008 08:31 PM
Passing data back and forth with a ASP.NET IFrame Kieran Benton Javascript 2 06-30-2005 11:55 PM
Passing data back and forth with a ASP.NET IFrame Kieran Benton ASP .Net 1 06-30-2005 09:29 PM
why do they bring it back and forth? doS Computer Support 3 12-31-2004 06:20 AM
How to pass data back and forth between ASP and JSP page? Matt ASP General 0 03-06-2004 08:29 AM



Advertisments