telophase: (Default)
telophase ([personal profile] telophase) wrote2005-02-17 01:21 pm

(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!

[identity profile] mrissa.livejournal.com 2005-02-17 08:01 pm (UTC)(link)
This entry is screwing up my friendspage. There's a \n and the comments button and then a whole bunch of other people's entries, and it seems to be setting the width fairly narrow for the whole lot. Or something. I don't know, but it isn't good. Sorry it's so frustrating!

[identity profile] jarodrussell.livejournal.com 2005-02-17 08:25 pm (UTC)(link)
Don't dump it to a field... Get it to redirect to a script with that stuff in the URL:

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).
ext_1502: (Default)

[identity profile] sub-divided.livejournal.com 2005-02-17 09:40 pm (UTC)(link)
*ears prick up* UMich? That's my university!

(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.)