Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Funky JavaScript Problem
Index -> Graphics and Design, Web Design -> (X)HTML Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Axarent




PostPosted: Wed Feb 08, 2006 10:51 pm   Post subject: Funky JavaScript Problem

I'm New to using JavaScript and was trying to help a friend who's taking CS in uni. Being all bold I thought I could learn it because I picked up Turing in High School.
Anyways I have a Score Enterer that you pick that amount of games and enter in the team names, scores and it's supposed to come out with the team that wins (the highest score)

For the first time through if the Score of one team is <100 and the score of the other team is >100 The team with the score <100 Is put as the Winner which is completely wrong.
It then goes and works correctly for A second, third, fourth...etc. entries with teams being <100 or >100 not an issue....
What the heck is going on???
Sponsor
Sponsor
Sponsor
sponsor
Axarent




PostPosted: Wed Feb 08, 2006 10:53 pm   Post subject: (No subject)

SORRY!!!

I meant that the team with score LESS THAN (>) 100 is put as winner NOT the team <100
Display posts from previous:   
   Index -> Graphics and Design, Web Design -> (X)HTML Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: