Getting JavaScript value

Discussion in 'ASP General' started by James, Sep 23, 2004.

  1. James

    James Guest

    I'm having a customer submit an order. When they submit it, it posts to a
    page that processes the order and inserts into our database, while
    displaying a summary of their order. I have a javascript function that will
    cause a "confirm" box to show up if an order seems like it might be a
    duplicate. However, I can't seem to get the code to "wait" for the response
    from that box, which I guess makes some sense. Am I stuck with having an
    interim page or doing something with posts or is there an easy way to get
    the record to not insert until the user responds to the confirm box?

    James
     
    James, Sep 23, 2004
    #1
    1. Advertising

  2. James

    James Guest

    Uing VBScript...just to clarify.

    "James" <> wrote in message
    news:%...
    > I'm having a customer submit an order. When they submit it, it posts to a
    > page that processes the order and inserts into our database, while
    > displaying a summary of their order. I have a javascript function that

    will
    > cause a "confirm" box to show up if an order seems like it might be a
    > duplicate. However, I can't seem to get the code to "wait" for the

    response
    > from that box, which I guess makes some sense. Am I stuck with having an
    > interim page or doing something with posts or is there an easy way to get
    > the record to not insert until the user responds to the confirm box?
    >
    > James
    >
    >
     
    James, Sep 23, 2004
    #2
    1. Advertising

  3. James

    Mark Schupp Guest

    You will have to have an interim page.
    Once they submit the form you can no longer put up an alert box because the
    processing is taking place on the server, not the client.

    --
    Mark Schupp
    Head of Development
    Integrity eLearning
    www.ielearning.com


    "James" <> wrote in message
    news:%...
    > I'm having a customer submit an order. When they submit it, it posts to a
    > page that processes the order and inserts into our database, while
    > displaying a summary of their order. I have a javascript function that

    will
    > cause a "confirm" box to show up if an order seems like it might be a
    > duplicate. However, I can't seem to get the code to "wait" for the

    response
    > from that box, which I guess makes some sense. Am I stuck with having an
    > interim page or doing something with posts or is there an easy way to get
    > the record to not insert until the user responds to the confirm box?
    >
    > James
    >
    >
     
    Mark Schupp, Sep 23, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?ZGF2aWQ=?=

    JavaScript assigns a value to label control text value?

    =?Utf-8?B?ZGF2aWQ=?=, May 24, 2006, in forum: ASP .Net
    Replies:
    8
    Views:
    23,988
    =?Utf-8?B?ZGF2aWQ=?=
    May 26, 2006
  2. Luke -
    Replies:
    2
    Views:
    337
    Mark Rae
    Oct 18, 2006
  3. Tim Fröglich

    Getting ID, calling url, search for value, return value

    Tim Fröglich, Jan 7, 2006, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    155
    Josh Twist
    Jan 10, 2006
  4. Dwizz
    Replies:
    10
    Views:
    414
  5. --[zainy]--
    Replies:
    1
    Views:
    307
    OmegaJunior
    Mar 31, 2007
Loading...

Share This Page