Les Mizzell wrote:
> <!--- NOT LOGGED IN --->
> <script>
> alert("Your credentials could not be verified, please try
> again!!!");
> </script>
> <cflocation url="../login.cfm" />
> <cfabort>
Since CFLOCATION won't send your JavaScript output, you'll need to pass
your message along on the URL and have the login page look for
it/display it instead. The CFABORT isn't required either.
<cflocation url="../login.cfm?msg=#URLEncodedFormat('Your
credentials...')#" />
In login.cfm...
<cfif isDefined("url.msg") and len(trim(url.msg))>
<script type="text/javascript">
alert('<cfoutput>#JSStringFormat(trim(url.msg))#</cfoutput>');
</script>
</cfif>
--
Justin Scott | GravityFree
Member of the Technical Staff
1960 Stickney Point Road, Suite 210
Sarasota | FL | 34231 | 800.207.4431
941.927.7674 x115 | f 941.923.5429
www.GravityFree.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319548
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4