PDA

View Full Version : javascript help


just_plain_me
02-02-2003, 06:31 PM
Hello, I am a newcomer to Javascript and I could use some help for my website. First of all, I am having trouble getting one of the codes on this site to work. It is the first code under the Other category in the free javascript section. I edited both the quiz.htm and the .js thing, but I don't know what to do with these codes. I put the quiz.htm on one page and the results.htm on another, but when I click the grade me! button, nothing happens. I also uploaded the .js file on to my web shell (I use angelfire) but that didn't work either.

Also, I would like to know how to get large movies and music onto my web shell. I've tried both, but I have to wait for hours and nothing happens. Is there another way?

Please contact me at evil_drwho@hotmail.com or on yahoo-my name is just_plain_me88 for answers.

-Thanx

ez4me2c3d
02-03-2003, 12:58 PM
can we have a link to you file so we can see the problem first hand? thanks.

just_plain_me
02-03-2003, 10:51 PM
oh, sorry, just go to the tv section of the main page, then seinfeld, then seinfeld quiz, and there it is.

arnyinc
02-04-2003, 01:24 PM
In your .js file, some of the equals signs are missing in the declarations:


correctchoices[10]'a'//question 10 solution
correctchoices[11]'e'//question 11 solution
correctchoices[12]'c'//question 12 solution


Other than that, your html document is extremely malformed. There are all kinds of extra html, body, head, and form tags that might cause problems. There are a lot of exceptions, but as a general rule it will be setup as


<html>
<head>
<script>
Put all your javascript here.
</script>
</head>
<body>
Put all your content here.
</body>
</html>

just_plain_me
02-05-2003, 07:17 PM
all right, I did all of these things, but it still doesn't work. The pages themselves look ok, but they won't link to each other. I'm very frustrated!