Computing.Net > Forums > Web Development > Dire need of help with javascript

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Dire need of help with javascript

Reply to Message Icon

Name: suavecat
Date: February 4, 2005 at 09:30:53 Pacific
OS: XP
CPU/Ram: 1 gig
Comment:

Hello all. I'm having a very difficult time with javascript on a transportation site that I'm setting up. The form can be found at http://www.exitexpress.com/Reservations.htm. my problem is that I don't know how to do calculations. I need to be able to double the price if a person wants to make a round trip reservation. I also need to multiply the reservation price times the number of passengers. for instance, if the trip is 25.00 from one zip code to the next, the price will be 50.00 for 2 passengers, 75.00 for 3 and so on. Plus the round trip calculation. Can anyone help me with this? I would REALLY appreciate it. Thanks for your time in advance.




Sponsored Link
Ads by Google

Response Number 1
Name: Dave02
Date: February 4, 2005 at 21:38:13 Pacific
Reply:

I guess you're saying you need a basic calculator.

You can probably find what you are looking for here.

www.hotscripts.com


0

Response Number 2
Name: suavecat
Date: February 5, 2005 at 09:09:41 Pacific
Reply:

Thanx for the expedient reply Dave but actually that's not what I'm looking for at all. I'm looking for a way to actually do calculations thru the actual form that's on that page I put up in the original post. Using javascript and variables. It's an eCommerce thing.


0

Response Number 3
Name: Nerm
Date: February 7, 2005 at 10:19:38 Pacific
Reply:

IMO the best way to do that is to use variables and IfElse conditional statements. I would suggest you read this javascript tutorial where it covers variables and conditionals.

http://www.w3schools.com/js/default.asp


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Remove ActiveX Question about Mozilla an...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Dire need of help with javascript

Help with Javascript www.computing.net/answers/webdevel/help-with-javascript/2893.html

Get Method with javascript array www.computing.net/answers/webdevel/get-method-with-javascript-array-/2362.html

Hi guys..need ur help www.computing.net/answers/webdevel/hi-guysneed-ur-help/743.html