jwgh: (bunny ears)
[personal profile] jwgh
One of the responses to my Johari thing was:
Asinine_Petty_Self-serving thinks: tense, tense, responsive, nervous, self-assertive, adaptable.
Apparently I'm two tense! That's actually pretty good.

(I don't know enough Javascript to see how this trick was done. [Actually, I don't know any.])

Date: 2006-02-13 09:41 pm (UTC)
From: [identity profile] cgoldfish.livejournal.com
you are two tents!

No need for Jabbascrip!

Date: 2006-02-15 05:30 am (UTC)
From: [identity profile] vardissakheli.livejournal.com
Well, he had to be able to read it, but this is fairly easy to guess at the meaning of:
document.getElementById("words").value = document.getElementById("words").value + n + ",";
--find the element with ID "words" and concatenate a number and a comma with its value. Then he just had to find the numbers associated with the words:
<td onClick="javascript:boxclick(this,51)">tense</td>
and rewrite the HTML form with his answer handcoded:
<input type="hidden" name="words" value="51,51,41,31,43,3">
or else just un-hide the input field so he could fill in his response:
<input name="words">
In fact, if you just copy the whole page but take out that one type="hidden" (and add a BASE element to pretend it came from kevan.org), you can watch the script fill in numbers as you click on words, and also type in numbers yourself. If you remove the onsubmit="return validate()" from the FORM element, you can even try submitting answers with too few or too many numbers and see if the script at the other end bothers to validate them. Maybe you could have twenty-two tenses!

Profile

jwgh: (Default)
Jacob Haller

June 2024

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 6th, 2026 08:17 am
Powered by Dreamwidth Studios