Click to See Complete Forum and Search --> : Some problems with Quiz site


Xerces
08-13-2003, 04:21 AM
Hi, I've been creating a site for a project in school. It's a quiz about hardware. But I've been having some trouble with some things. :rolleyes:

On the index screen, when you click beginner, gevorderde or Expert, the intended pages don't open. But I get blank pages.

And my score system doesn't work. When you answer all the questions and click "try me!", it should calculate the score and open a new page with the evaluation.

The site is zipped and downloadable here (http://users.pandora.be/xerces/site.zip)

Gollum
08-13-2003, 05:17 AM
In your quiz pages where you have the line

<script type="text/javascript" language="Javascript" src="../javascript/quizbeginnerhandler.js">

you should probably add the </script> just after it or the browser will think that everything that follows it is Javascript.

Xerces
08-13-2003, 07:07 AM
Tried it and it doens't really change anything. :(

Gollum
08-13-2003, 07:16 AM
Are you sure? It worked for me.

Xerces
08-13-2003, 07:38 AM
Jep, that solves my first problem. But how about the second one?

Gollum
08-13-2003, 07:48 AM
Not sure if this is your second problem, but I've noticed that your calls to document.write() are missing quotes...

window.document.write(uw score was 0);

Xerces
08-13-2003, 08:11 AM
changed it to
window.document.write("uw score is 0");
and it still doesn't work. Although I'm sure that was a fault too...

Xerces
08-13-2003, 08:18 AM
Ok, put </script >behind it there too, now he indeed opens the right page, but now i get java errors, about opener.document is null or not an object. This is because I try to give the score to the evaluation page, but is doest work my way, because he doesn't open in a different window. Is there a wa to pass a number between pages?

Xerces
08-13-2003, 09:05 AM
OK, I've redone the site and now it's practically finished. I made the evaluation popup and no errors at all. The only thing :( the score is always 0. not very handy when it's a quiz that's not supposed to be rigged. :D
So anyway, the new version is at the same location as before and that's here (http://users.pandora.be/site.zip).