the cflocation will preclude any client side code (HTML or JS) from displaying.

use a JavaScript redirect.

<cfif NOT structKeyExists(session, 'appfee')>
     <script type="text/javascript">
          alert('your session has expired');
          
<cfoutput>location.href="http://olympus.scs.jhu.edu/#session.URL#/admissions/";;</cfoutput>
     </script>
     <cfabort />
</cfif>

On 9/21/07, erik  tsomik <[EMAIL PROTECTED]> wrote:
> I am trying to show the alert saying that the session is expired and redirect 
> then to home page. I got this working except I do not see the alert
>
>       <cfif not isDefined("session.appfee")>
>
>         <script type="text/javascript" runat="server">
>      alert ('your session has expired');
>
> <cflocation url="http://olympus.scs.jhu.edu/#session.url#/admissions/"; 
> addtoken="no">
> </script>
> <cfabort>
>         </cfif>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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