I have a form that posts back to itself.

This is a stripped down version of the page:
----------------------------------------------------------------
<cfhtmlhead text='
<script language="Javascript"> 
<!--
 function doClear(theText) {
     if (theText.value == theText.defaultValue) {
         theText.value = ""
     }
 }
//-->'>
<cfparam name="attributes.errorlist" type="string" default="">
<cfparam name="attributes.name" type="string" default=" Name:">
<cfparam name="attributes.phone" type="string" default=" Phone:">
<cfparam name="attributes.email" type="string" default=" E-mail:">
<cfparam name="attributes.message" type="string" default=" Message:">

<form name="form" id="form" action="#self#" enctype="multipart/form-data" 
method="post">
                                                        <input type="hidden" 
name="fuseaction" value="contest.home" />
<input name="name" type="text" value="#attributes.name#" 
onFocus="doClear(this)" />
<input name="phone" type="text" value="#attributes.phone#" 
onFocus="doClear(this)" />
<input name="email" type="text" value="#attributes.email#" 
onFocus="doClear(this)" />
</form>
----------------------------------------------------------------

The page works on first load, the default values show, clear on focus, and let 
me type.  But if I leave something blank and submit, when the form posts back, 
I can't focus on the inputs or enter anything.  I'm stumped. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:304817
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5

Reply via email to