Try it directly (make sure it exists).
-mk
<cfsavecontent variable="showApprovalAlert">
var myvar = _root.lid;
var myClickHandler = function (evt)
{
if (evt.detail == mx.controls.Alert.YES)
{
getUrl('Detail.cfm?task=1&LID=' + _root.lid, GET);
}
}
//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>
-----Original Message-----
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 07, 2005 8:18 PM
To: CF-Talk
Subject: Re: URL String and cfsavecontent
A ha! That's a COMPLETELY different question, and I have no idea how
to solve, since I don't use CF7 for anything. Any set of flash docs
should give you the anwser though. You're form is just a movie, so it
has the same access to the page it's embedded in's URL scope as a
normal Flash IDE-created movie.
cheers,
barneyb
On 7/7/05, Michael Hohnecker <[EMAIL PROTECTED]> wrote:
> 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>
>
--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/
Got Gmail? I have 50 invites.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:211420
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