Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Getting JavaScript value

Reply
Thread Tools

Getting JavaScript value

 
 
James
Guest
Posts: n/a
 
      09-23-2004
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


 
Reply With Quote
 
 
 
 
James
Guest
Posts: n/a
 
      09-23-2004
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
>
>



 
Reply With Quote
 
 
 
 
Mark Schupp
Guest
Posts: n/a
 
      09-23-2004
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
>
>



 
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
assigning session a javascript value in javascript function --[zainy]-- Javascript 1 03-31-2007 05:11 PM
Getting value of a var from javascript back to ASP Luke - eat.lemons@gmail.com ASP .Net 2 10-18-2006 06:41 PM
JavaScript assigns a value to label control text value? =?Utf-8?B?ZGF2aWQ=?= ASP .Net 8 05-26-2006 04:20 PM
Getting ID, calling url, search for value, return value Tim Fröglich ASP .Net Web Services 1 01-10-2006 09:18 PM
Getting value from asp:label into javascript input value Dwizz Javascript 10 08-07-2005 02:28 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57