in the input fields try adding a trim to the value="" attributes as in <input name="name" type="text" value="#trim(attributes.name)#" onFocus="doClear(this)" />
On Tue, Sep 29, 2009 at 9:08 PM, Matthew Smith <[email protected]> wrote: > > 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:304819 Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
