I recommend using a full url (http://www.yourdomain.com) in cflocation.
This information is posted in the response header to the server when Cold
Fusion executes, so the browser doesn't really know where to start from with
a relative path.
I don't know if this is the official spec, but I think based on HTTP
headers, it's the right way to go.
Peter Janett
New Media One Web Services
================================
WEB HOSTING FOR WEB DEVELOPERS
================================
-> Sun, IRIX, NT, Linux <-
PHP, MySQL, Perl, Cold Fusion,
MS SQL, ASP, SSI, SSL
http://www.newmediaone.net
[EMAIL PROTECTED]
(303)828-9882
----- Original Message -----
From: Stas Newdel <[EMAIL PROTECTED]>
To: Fusebox@Houseoffusion. Com <[EMAIL PROTECTED]>
Cc: CFTalk <[EMAIL PROTECTED]>
Sent: Tuesday, September 05, 2000 3:37 PM
Subject: Problem with CF location
> Hello,
>
> I am trying to do this from a child fuse app, in its index.cfm
>
> <cfswitch expression="#ListLast(attributes.fuseaction,".")#">
> <cfcase value="SiteMgrToolkit">
> <cflocation url="../index.cfm?fuseaction=#fuseaction#" addtoken="Yes">
> </cfcase>
> <cfdefaultcase>
> <cfinclude template="dsp_corp_reg_main.cfm">
> </cfdefaultcase>
> </cfswitch>
>
> As you can see, in the first "case" clause, I am breaking out of the
current
> sub app and am trying to redirect to another app through the parent
> index.cfm. However, this does not work, I am getting an IE error (not a CF
> error), that a page is not available. I am running CF4.5 Eval and PWS on
an
> NT workstation. Here's what's in the parent index.cfm:
>
> <cfswitch expression="#ListFirst(attributes.fuseaction,".")#">
> <cfcase value="Toolkit">
> <cflocation url="toolkit/index.cfm" addtoken="Yes">
> </cfcase>
> <cfdefaultcase>
> <cflocation url="welcome/index.cfm" addtoken="Yes">
> </cfdefaultcase>
> </cfswitch>
>
> Thanks for any tips!
>
> --------------------------------------------------------------------------
----
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.