cookie naming rules?

427 views
Skip to first unread message

RA

unread,
Feb 4, 2008, 6:42:02 PM2/4/08
to TiddlyWiki
What are the rules/conventions regarding naming the cookies for things
like sliders and tabs?
I found that txtCookieName and chkCookieName work but any other prefix
like abcCookieName does not.

RA.

Eric Shulman

unread,
Feb 4, 2008, 6:50:14 PM2/4/08
to TiddlyWiki, ho...@unamesa.org
The core uses the "txt" and "chk" prefixes to know what to display and
how to handle the value of the cookie.

<<option txtCookieName>> creates a text input field, and the cookie
value can be any text

<<option chkCookieName>> creates a checkbox, and the cookie value is a
'boolean' (i.e., true or false)

Also, [[UploadPlugin]] adds support for password-input fields, which
work like regular input fields, except they show **** instead of the
actual text. This plugin-defined feature uses the prefix "pas", as
in:

<<option pasCookieName>>

HTH,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
Reply all
Reply to author
Forward
0 new messages