response.redirect and js

Results 1 to 2 of 2

Thread: response.redirect and js

  1. #1
    Join Date
    Dec 1969

    Default response.redirect and js

    I have a page where that tracks customer leads. The user enters the new customer info(name,address,etc...) then the form is submitted action="confirm.asp" confirm.asp does the actual insert, and displays "Customer xyz has been added!" I am trying to add js confirm box that will popup as soon as the page loads and ask the user if they would like to add details of the conversation with said customer. If yes then redirect to the appropriate page. If not then stay at the current page confirm.asp. How can I pass the confirm value to the response.redirect? <BR>Is this possible?<BR>TIA!

  2. #2
    Join Date
    Dec 1969

    Default Can't be done...

    THINK ABOUT IT! <BR><BR>Once you have submitted the form, the prior page is history. Gone. The browser forgets all about it.<BR><BR>Then UNTIL you deliver the HTML from "confirm.asp" to the browser, there is *NOTHING* for the browser to work on.<BR><BR>If you want to do something like this, popup the JS confirm *BEFORE* doing the submit! (e.g., in the onSubmit handler for the form)<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts