(no subject)
ARG.
If anyone out there has the least passing familiarty with Javascript, let me know! I have the following function, which prints information about quiz totals (number correct, number wrong, percentage correct) to the screen. I need to *somehow* dump it into the Value field of a form that passes the info onto a script that mails it. I can't figure out how.
function here since it was messing up friendspages
Nothing I do results in it ending up in a form field. Or doing anything other than, occasionally, rendering the entire quiz nonfunctional for some unknown reason. ARG.
This tutorial and quiz was originally created by UT in PHP and MySQL, but do we pick the language in which I can EASILY write this and which has an email-results-to-professor function embedded in it anyway? No! We pick the Javascript version done by UMich that has no email functionality whatsoever! And it's been up and running for months or years so there's no way I can tell them to use the other version! ARG!
If anyone out there has the least passing familiarty with Javascript, let me know! I have the following function, which prints information about quiz totals (number correct, number wrong, percentage correct) to the screen. I need to *somehow* dump it into the Value field of a form that passes the info onto a script that mails it. I can't figure out how.
function here since it was messing up friendspages
Nothing I do results in it ending up in a form field. Or doing anything other than, occasionally, rendering the entire quiz nonfunctional for some unknown reason. ARG.
This tutorial and quiz was originally created by UT in PHP and MySQL, but do we pick the language in which I can EASILY write this and which has an email-results-to-professor function embedded in it anyway? No! We pick the Javascript version done by UMich that has no email functionality whatsoever! And it's been up and running for months or years so there's no way I can tell them to use the other version! ARG!
no subject
no subject
no subject
no subject
no subject
http://domain.com/mailer.php?score=100&percent=100&name=andrew+burton
To do that, check out this page (http://www.pageresource.com/jscript/jredir.htm).
no subject
no subject
no subject
I ahve jsut figured out that it doesn't like teh hidden field, but I can tag a textarea as 'readonly' and they can't change it. So this may be my current solution, unless I find something elegant instead of klunky.
no subject
no subject
Anyway, I just figured out how to make a hidden field print (one of those duh! moments (http://www.sfolse.net/random/aarg2.txt)), and have successfully sent myself some quiz results. w00t!
no subject
no subject
I added printQuizForm at the very end of the file, modified from the original printQuizTotal, somewhere in the midst of the file, because the original contains HTML formatting and I wanted to send the messages plaintext. The quiz results page is here (http://libnt4.lib.tcu.edu/www/eref/instruction/yourSearchpath/mod3/quiz/results.html) and the quiz starts here (http://libnt4.lib.tcu.edu/www/eref/instruction/yourSearchpath/mod3/quiz/index.html), if you're bored and want to play. When you get to the results page, typing 'sfolse' into the box that pops up and asks you for your name produces the submit button; anything else doesn't.
I'm currently hijacking the script that sends comments to librarians (don't worry, it only mails to the email address you type in), since that's simplest. Once I find out what they want me to send in the emails, I may have to modify it to give me better formatting.
no subject
(Er. From a user end most of the web-based stuff here is buggy as anything. Something goes down every month or so. And the email system is, well. "Cripled" might be giving it too much credit.)
no subject