You are viewing our Forum Archives. To view or take place in current topics click here.
Need Javascript help!
Posted:

Need Javascript help!Posted:

xPrimitive
  • TTG Senior
Status: Offline
Joined: May 07, 201112Year Member
Posts: 1,039
Reputation Power: 41
Status: Offline
Joined: May 07, 201112Year Member
Posts: 1,039
Reputation Power: 41
This was my assignment for my intro to programming class.

[ Register or Signin to view external links. ]

I was absent the day of the lesson and didn't understand much, so this is what I have.

[ Register or Signin to view external links. ]

[ Register or Signin to view external links. ]

I don't know how to put more than one phrase in the alert box, how to keep a running total of the numbers entered & I can't seem to get a counter to work on the second button.

Please and Thank you for any help.
#2. Posted:
Sys
  • Christmas!
Status: Offline
Joined: Dec 30, 201310Year Member
Posts: 1,331
Reputation Power: 69
Status: Offline
Joined: Dec 30, 201310Year Member
Posts: 1,331
Reputation Power: 69
Could you included some pictures expanding on the " More than one phrase" Please

Then I will be able to help you on that one

-0lly
#3. Posted:
Imp
  • Shoutbox Hero
Status: Offline
Joined: Jan 01, 201113Year Member
Posts: 1,957
Reputation Power: 401
Status: Offline
Joined: Jan 01, 201113Year Member
Posts: 1,957
Reputation Power: 401
[ Register or Signin to view external links. ]

Here is the fixed code.

Basically,

    The numTotal was not declared.
    The sum was not Displayed, and was resetting to zero on each call.


To add lines (phrases) in your alerts just put a \n in where you want the new line to start.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.