IIS ASP - Getting JavaScript value

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > September 2004 > Getting JavaScript value





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Getting JavaScript value
James

2004-09-23, 5:54 pm

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

2004-09-23, 5:54 pm

Uing VBScript...just to clarify.

"James" <cppjames@aol.com> wrote in message
news:%23StkSOZoEHA.4004@TK2MSFTNGP10.phx.gbl...
> 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

2004-09-23, 5:54 pm

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" <cppjames@aol.com> wrote in message
news:%23StkSOZoEHA.4004@TK2MSFTNGP10.phx.gbl...
> 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
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com