[thelist] Input Text Colour
Jeff
jeff at members.evolt.org
Mon, 17 Jan 2000 16:30:16 -0800
james,
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: James Aylard <jaylard@encompass.net>
:
: Just a slight change: class.name in IE should be className, and an equal
: sign is needed in place of the colon, such as:
:
: <input
: type="text"
: name="user"
: value=""
: class="old_class"
: onchange="this.className = 'new_class';">
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
this was precisely the sort of feedback i was hoping for. i thought it was
className but i wasn't sure.
<TIP TYPE="Cold Fusion">
there are many different ways to check values in cold fusion. some are
faster than others. some are easier to read than others. since time is of
utmost concern to keep users at the site, it pays to know which forms are
faster than others and get in the habit of using the faster forms. here's a
few i could think of off the top of my head:
bad: <CFIF form.username IS NOT "">
good: <CFIF Len(form.username)>
bad: <CFIF Find('@',form.email) GT 0>
good: <CFIF Find('@',form.email)>
bad: <CFIF FileExists(myFile) IS true>
good: <CFIF FileExists(myFile)>
</TIP>
thanks,
: jeff.howden
: web.development.professional
: evolt.org.member
:
: the.best.looking.developers.on.the.net
:
: http://evolt.org/
: jeff@members.evolt.org