how to create confirm window with data from parent window before data insertion in DB

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • silwar
    New Member
    • Mar 2011
    • 7

    how to create confirm window with data from parent window before data insertion in DB

    I have a record insertion webform(parent form) with save button. When I click save button I need another confirmation window(child form) to open with all data entered from parent window so that user can re-check values entered or may be edit them there(if possible). and only than insert. any help. i don't know where to start.

    for e.g. we have preview window here in this site to preview what we typed.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    In order to open the new window you will require JavaScript.

    Now, to pass information to the new window, you could pass all of the data (using the URL/Query-String) to the new window when you execute the JavaScript that opens the window.

    Edit: Or, instead of passing everything through the URL/Query-String you could use the JavaScript window.opener in the child browser-window to execute some JavaScript in the parent browser-window... this JavaScript would retrieve the data for you.

    Or, you could store the information in Session so that the page displayed in your new window can retrieve this information and display it to the user.

    Using the second approach, you will have to submit the page to the server so that you can store the page's information in session...then you need send a response to the Browser to issue JavaScript that will open the new window.

    -Frinny

    Comment

    Working...