Sharing Values Between Onrev Scripts?

Scott Rossi scott at tactilemedia.com
Sun Sep 1 04:04:33 EDT 2013


Right, I noticed the inclusion of the answer, but it's obscured which
helps.  Is a cookie really the only way to do this without adding the
answer to the page?

My thought was the answer value would get stored in an onrev variable when
the question is generated, and the evaluation would be able to operate on
that same variable. But as I said, I couldn't figure out how/if this was
possible.

Best Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 9/1/13 12:55 AM, "Alex Tweedly" <alex at tweedly.net> wrote:

>Yes, Sarah's example works nicely. (Her form puts the correct answer
>into the form as a hidden value, so it too is returned when the user
>submits the form; that's easier than the alternative of storing in a
>file/database, and using a cookie/session data to identify the user and
>retrieve the stored value for comparison).
>
>If you feel extra-paranoid (I can imagine there being robots which will
>simply return all hidden values in their auto-responses), then instead
>of putting the correct answer into the hidden field, you put in say
>"answer+1"
>
>-- Alex.
>
>On 01/09/2013 08:14, Scott Rossi wrote:
>> Actually, I found some example scripts on Sarah Reichelt's site that
>>look
>> like they may work.
>> http://www.troz.net/onrev/
>>
>>
>> Regards,
>>
>> Scott Rossi
>> Creative Director
>> Tactile Media, UX/UI Design
>>
>>
>>
>>
>> Recently I wrote:
>>
>>> Anyone know if it's possible for an onrev script on a page to share its
>>> value with another onrev script?
>>>
>>> I'm trying to a form validation of sorts using an onrev script, where
>>>part
>>> of the form is dynamically generated by another script.  The content
>>>is a
>>> question like "What is 1 + 1?" which is created using some random
>>> elements.  Is there some way to make the validation script aware of the
>>> dynamically generated question content without including the answer in
>>>the
>>> page?
>>>
>>> Thanks & Regards,
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>>subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>_______________________________________________
>use-livecode mailing list
>use-livecode at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode
>






More information about the use-livecode mailing list