paul gordon wrote:

>>>paul gordon wrote:
>>>      
>>>
>>I haven't done that, just tried the Flash form.
>>    
>>
>
>Hooray! I've actually got the field to display the number of the person 
>selected.
>
>Is there a way of preserving the number and adding further numbers to the same 
>field?
>  
>
<cfsavecontent variable="variables.namechange">
var myClickHandler = function (evt){
    var thisPhoneList = _root.phonelist;
    if (evt.detail == mx.controls.Alert.OK){
        if (thisPhoneList.value.length >0)  thisPhoneList.value.length = 
thisPhoneList.value.length+',';
           thisPhoneList.value.length = 
thisPhoneList.value.length+fartist.selectedItem.data;
    }
}
alert("Are you sure you want to add this mobile number?", "Warning", 
mx.controls.Alert.OK | mx.controls.Alert.CANCEL, myClickHandler);
</cfsavecontent>

<cfquery name="getArtists" datasource="cfartgallery">
SELECT *
FROM ARTISTS
</cfquery>
<cfform method="get" preloader="no" format="flash" skin="haloblue">
<cfselect name="fartists" query="getArtists" display="FIRSTNAME" 
value="PHONE" onchange="#variables.namechange#">

</cfselect>
<cftextarea name="phonelist" label="Selected Mobile Numbers" enabled="false" 
height="10" width="30" />
</cfform>

Again, typed straight into the email, so there may be errors (make sure you 
turn on flash debugging in the CF administrator, while you're developing your 
form), but it should be about right.

Stephen



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218189
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to