Thanks for the suggestion.  Test.value == 'myvalue' results in an error
saying...


1 Error found.
 
Error /cti-stlcom/inde.mxml:331
There is no property with the name 'value'.

It seems that CF/Flex/whatever doesn't provide a 'value' property for
TextInputs.


-----Original Message-----
From: Dave Francis [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 07, 2007 10:00 AM
To: CF-Talk
Subject: RE: Flash form binding using cfinput type="image"

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





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294382
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