Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

ASP VB6 - Form Refresh

New Here ,
Jun 02, 2006 Jun 02, 2006

Copy link to clipboard

Copied

Hi,
I have a form which consists of a list of items together with order qty, individual cost price, and total price for each item. The form will have a submit button so that when the user has finished his order I re-direct them to my selling page.

However I do not know how I can update the total price for each item when the user inputs his order quantity for each item and before they submit their entire order.

I would be grateful for any help.

Many thanks,

Polly Anna
TOPICS
Server side applications

Views

848
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jun 03, 2006 Jun 03, 2006
Yes, you can do all of this with Javascript. Have a look at
http://www.irt.org/script/form.htm#6
You should find some useful code there. You can find when the user has
tabbed out of a textbox by using onBlur.

Pat.


"Polly Anna 22" <webforumsuser@macromedia.com> wrote in message
news:e5rqts$kcj$1@forums.macromedia.com...
> Hi Jules,
> yes that is certainly an option. What if I wanted to do the calculation
> as
> soon as the user tabbed out of the text box, would I be looking at
> Javascrip...

Votes

Translate
LEGEND ,
Jun 02, 2006 Jun 02, 2006

Copy link to clipboard

Copied

You don't really need to do that. You can store the price and quantity in
the database and then do the calculations in the database query. ie. You'd
do the calculations after the form is submitted, not before.

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004




Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 03, 2006 Jun 03, 2006

Copy link to clipboard

Copied

Hi Jules,
yes that is certainly an option. What if I wanted to do the calculation as soon as the user tabbed out of the text box, would I be looking at Javascript to do it? How would I know that the user had tabbed out of the text box?

I really do appreciate any help I receive.

Kind regards,

Polly Anna

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 03, 2006 Jun 03, 2006

Copy link to clipboard

Copied

Hi Jules,
yes that is certainly an option. What if I wanted to do the calculation as
soon as the user tabbed out of the text box, would I be looking at Javascript
to do it? How would I know that the user had tabbed out of the text box?

I really do appreciate any help I receive.

Kind regards,

Polly Anna

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 03, 2006 Jun 03, 2006

Copy link to clipboard

Copied

Yes, you can do all of this with Javascript. Have a look at
http://www.irt.org/script/form.htm#6
You should find some useful code there. You can find when the user has
tabbed out of a textbox by using onBlur.

Pat.


"Polly Anna 22" <webforumsuser@macromedia.com> wrote in message
news:e5rqts$kcj$1@forums.macromedia.com...
> Hi Jules,
> yes that is certainly an option. What if I wanted to do the calculation
> as
> soon as the user tabbed out of the text box, would I be looking at
> Javascript
> to do it? How would I know that the user had tabbed out of the text box?
>
> I really do appreciate any help I receive.
>
> Kind regards,
>
> Polly Anna
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 03, 2006 Jun 03, 2006

Copy link to clipboard

Copied

LATEST
Thank you Pat - that's wonderful.

Kind regards,

Polly Anna

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines