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
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.
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.
Summary: Simple. For any acripts that you want in an external page just copy everything between the opening <script> tag and the ending </script> tag (do NOT copy the script tags themselves) and put it i...
Summary: I'm not sure I can envision the scenario here...You want to get some data from a server and store it in javascript, but you want to do it via GET instead of POST? It sounds like you may be talking abo...
Summary: hi guys, I need a help. I am sure many of you are well addicted to the Net,and spend a lot of time surfing. i am building a site, and on my home page i want to put some links upon clicking which you...