Not sure about cfinput, but for regular type="text" it should be .value, not
..text

-----Original Message-----
From: Rob Parkhill [mailto:[EMAIL PROTECTED]
Sent: Friday, December 07, 2007 10:34 AM
To: CF-Talk
Subject: Re: Flash form binding using cfinput type="image"


>
><cfinput type="text" name="test" width="200" label="test:">
>
>
>
><cfinput type="image" name="image1" width="65" height="65"
>onClick="{test.text == 'myvalue'}">
>
Jason,

You have to change the onClick to the following.

<cfinput type="image" name="image1" width="65" height="65"
onClick="{document.formname.test.text = 'myvalue'}">

That will update it momentarily (you'll see it flash) and then it goes back
to being blank.  I am sure someone else will be able to help with the rest,
but that is the change required to the JS call.

Rob



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294380
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to