I have questions, scoring values (well, to a numerical extent), and resultant outcomes all set up - but not a *ing clue how to code them on a site like Quizzilla. How can I get an example of such script - and are there better quiz pages to put this on?
Announcement
Collapse
No announcement yet.
Girly Quizzes and relevant java (?) scripting
Collapse
X
-
there should be. just look in the source html for the link to the script file, and reverse engineer that.
that said, javascript sucks, because it's client-side.
you'd be better off writing the quiz in php, asp, or some other server-side code, unless your server is incapable of doing it.B♭3
Comment
-
java and javascript are two unrelated technologies.
the problem with javascript/client-side technologies is that they might have it disabled, bad code leads to far more unpredictable reactions, and results can vary between browsers. with the code in this case, the last one is not as much of a concern.
the benefit of server-side is that you can ensure that everybody gets the exact same behavior from your script.B♭3
Comment
-
I wouldn't say Javascript is horrible because it is client side. The good thing about client side scripts and applets (inlcuding Java applets) is they reduce access to the server and off load work to the client's computer.
Javascript is horrible because the error reporting sucks and you don't have a damn clue why the damn script fails to work. Okay, I reckon that's a problem with the browsers, not the language itself.(\__/) 07/07/1937 - Never forget
(='.'=) "Claims demand evidence; extraordinary claims demand extraordinary evidence." -- Carl Sagan
(")_(") "Starting the fire from within."
Comment
-
Blog | Civ2 Scenario League | leo.petr at gmail.com
Comment
-
Javascript is horrible because the error reporting sucks and you don't have a damn clue why the damn script fails to work. Okay, I reckon that's a problem with the browsers, not the language itself.
In Mozilla-based browsers, enter "javascript:" in the location bar and hit enter.
In Opera, go Window > Special > Javascript Console.
You'll see a list of errors for the current page.Blog | Civ2 Scenario League | leo.petr at gmail.com
Comment
-
St. Leo,
I could find the JavaScipt console. It's just that they don't report errors. I much rather they yell at me instead of just not doing things. Yesterday I spend a few ours chasing down a bug, which turned out to be an undeclared variable being passed to a function. ::sigh::(\__/) 07/07/1937 - Never forget
(='.'=) "Claims demand evidence; extraordinary claims demand extraordinary evidence." -- Carl Sagan
(")_(") "Starting the fire from within."
Comment
-
it's not that. it's that i was sick and tired of having to do little modifications depending on whether the client was using ie or mozilla.
granted, it was trying to make a menu, but i soon said **** it to javascript.
in the case of quizzes, i still like php better, but there's not much wrong with javascript.B♭3
Comment
-
What is that you need to do?(\__/) 07/07/1937 - Never forget
(='.'=) "Claims demand evidence; extraordinary claims demand extraordinary evidence." -- Carl Sagan
(")_(") "Starting the fire from within."
Comment
Comment