This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes Adding prices using Javascript    Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Adding prices using Javascript    " Watch "Adding prices using Javascript    " New topic
Author

Adding prices using Javascript

Jimi Warren
Greenhorn

Joined: Jan 26, 2008
Posts: 10
I am relativley new to javascript, I have previously used it only to make simple java applets; but recently I have been trying to lear more about the language.

I have decided to make an online store for my small computer buisness, but I came across a hurdle when designing the computer customisation section. I want customers to be able to see the 'live' total cost of there computer system as they add components to it (using a form). At the moment the form sends the selected data back to me by email and I have to add the prices up and send a reply email to the customer.

This is somewhat impractical and I thought that javascript would be the right solution to add the selected component prices on the webpage.

Can anyone help with the scripting?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56200
    
  13

Originally posted by JJ-Jimi:
I am relativley new to javascript, I have previously used it only to make simple java applets; but recently I have been trying to lear more about the language.

Applets are written in Java, not JavaScript, so it's not clear which language you are really asking about.

Java and JavaScript have little in common except for the unfortunate naming. (Netscape thought that JavaScript sounded better than ECMAScript back in the 90's).

So which is it? Are you asking about server-side Java? Or client-side JavaScript?

I suspect the latter, but want to be sure.
[ January 26, 2008: Message edited by: Bear Bibeault ]

[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Jimi Warren
Greenhorn

Joined: Jan 26, 2008
Posts: 10
Sorry, I am talking about javascript client-side.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56200
    
  13

Cool. I'll move this off to our HTML/JavaScript forum. See you there.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Adding prices using Javascript
 
Similar Threads
Adding prices using Javascript
Pop Up Box in JSP
Pass Javscript array from jsp to servlet
Dispay the value of selected item from dropdown menu on textbox
Question on Select boxes