Click here to Skip to main content
15,892,746 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: Javascript , a devil spawn language. Pin
Jacobclay716-Nov-15 10:03
Jacobclay716-Nov-15 10:03 
GeneralRe: Javascript , a devil spawn language. Pin
W Balboos, GHB27-Oct-15 8:19
W Balboos, GHB27-Oct-15 8:19 
GeneralRe: Javascript , a devil spawn language. Pin
Armando de la Torre28-Oct-15 11:02
Armando de la Torre28-Oct-15 11:02 
AnswerRe: Javascript , a devil spawn language. Pin
ZurdoDev23-Nov-15 3:05
professionalZurdoDev23-Nov-15 3:05 
QuestionButton in the tree is not fired Pin
Member 785420721-Oct-15 18:34
Member 785420721-Oct-15 18:34 
AnswerRe: Button in the tree is not fired Pin
F-ES Sitecore21-Oct-15 23:35
professionalF-ES Sitecore21-Oct-15 23:35 
GeneralRe: Button in the tree is not fired Pin
Member 785420722-Oct-15 19:54
Member 785420722-Oct-15 19:54 
QuestionNeed js help! Pin
Member 1197204321-Oct-15 15:33
Member 1197204321-Oct-15 15:33 
Ok I'm just a beginner and have an assignment. We are doing an order form where you add up the product amounts and come up with total cost using parseFloat for decimals. I can get the product amounts in decimals and it adds up right in the total cost, but the total cost does not come up with decimals and I cannot figure out why. Here is my js function code:


function total_price(){
var a = parseFloat(document.order.sub1.value);
var b = parseFloat(document.order.sub2.value);
var c = parseFloat(document.order.sub3.value);
var d = parseFloat(document.order.sub4.value);
var e = parseFloat(document.order.sub5.value);
var f = parseFloat(document.order.sub6.value);
var total = a + b + c + d + e + f;
document.getElementById("total").value = total;
}

This is my input tag (it's inside td tag:
<input class="numbers" id="total" onclick="total_price()" name="total" size="7" />
AnswerRe: Need js help! Pin
Wombaticus22-Oct-15 0:42
Wombaticus22-Oct-15 0:42 
QuestionYouTube API - upload videos by search term Pin
Member 1207417120-Oct-15 9:49
Member 1207417120-Oct-15 9:49 
QuestionHow to control the do / while infinite loop? Pin
Ted.K-117-Oct-15 1:06
Ted.K-117-Oct-15 1:06 
AnswerRe: How to control the do / while infinite loop? Pin
Wombaticus18-Oct-15 11:52
Wombaticus18-Oct-15 11:52 
GeneralRe: How to control the do / while infinite loop? Pin
Ted.K-123-Oct-15 21:43
Ted.K-123-Oct-15 21:43 
AnswerRe: How to control the do / while infinite loop? Pin
Blikkies18-Oct-15 22:02
professionalBlikkies18-Oct-15 22:02 
GeneralRe: How to control the do / while infinite loop? Pin
Ted.K-123-Oct-15 21:43
Ted.K-123-Oct-15 21:43 
AnswerRe: How to control the do / while infinite loop? Pin
W Balboos, GHB20-Oct-15 7:45
W Balboos, GHB20-Oct-15 7:45 
GeneralRe: How to control the do / while infinite loop? Pin
Ted.K-123-Oct-15 21:42
Ted.K-123-Oct-15 21:42 
QuestionHow to deal with Uncaught TypeError? Pin
Ted.K-117-Oct-15 0:59
Ted.K-117-Oct-15 0:59 
AnswerRe: How to deal with Uncaught TypeError? Pin
Wombaticus18-Oct-15 21:40
Wombaticus18-Oct-15 21:40 
GeneralRe: How to deal with Uncaught TypeError? Pin
Ted.K-124-Oct-15 19:44
Ted.K-124-Oct-15 19:44 
Questionhow to check the control is available or not? Pin
HoneyBee14-Oct-15 20:45
HoneyBee14-Oct-15 20:45 
AnswerRe: how to check the control is available or not? Pin
Blikkies15-Oct-15 4:49
professionalBlikkies15-Oct-15 4:49 
Questioncheck textbox validation outside the form tag in javascript Pin
HoneyBee14-Oct-15 20:43
HoneyBee14-Oct-15 20:43 
AnswerRe: check textbox validation outside the form tag in javascript Pin
Richard Deeming15-Oct-15 2:55
mveRichard Deeming15-Oct-15 2:55 
Questionjavascript question Pin
Member 1197204310-Oct-15 13:43
Member 1197204310-Oct-15 13:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.