Here is a better example of what i'm doing. I have an alert box in flash
forms. I would like the getURL to run with the current URL string which looks
like http://www.test.com?lid=4.
Is this the proper way to bring in a URL string variable: var myvar =
_root.lid;
<cfsavecontent variable="showApprovalAlert">
var myvar = _root.lid;
var myClickHandler = function (evt)
{
if (evt.detail == mx.controls.Alert.YES)
{
getUrl('Detail.cfm?task=1&LID=' +myvar);
}
}
//create the alert
var myAlert = mx.controls.Alert.show("Are you sure you want to approve
this request", "Warning",
mx.controls.Alert.YES | mx.controls.Alert.CANCEL, this, myClickHandler);
</cfsavecontent>
<cfform format="flash" action="#cgi.SCRIPT_NAME#" method="post"
name="Approve" width="400" height="200" >
<cfformgroup type="horizontal" visible="yes" enabled="yes">
<cfinput type="button" name="btnApproval" label="test"
value="Approve Request" onClick="#ShowApprovalAlert#" >
<cfinput type="button" name="btnDecline" label="test"
value="Decline Request" >
</cfformgroup>
</cfform>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211400
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54