Your CFSET appears to be overwriting the URL parameter.
Are you thinking of a CFPARAM which will only create the variable with a default value
if the variable does not exist yet?
>>> [EMAIL PROTECTED] 20/06/2003 10:49:20 >>>
Hi all,
Trying to get my head around dynamic includes.
I've got my index.cfm page which holds a few includes. One of those is our
"news.cfm". Now I want to replace my "news.cfm" when a graphic link is
clicked to then include our "custOps_shout.cfm"
So my graphic link is <a href="../index.cfm?include=custOps_shout">Click
here</a>
I'm starting out like so:
<cfset #URL.include# = "">
<cfif #URL.include# IS "custOps_shout">
<cfinclude template="includes/custOps_shout.cfm">
<cfelse>
<cfinclude template="includes/news_links.cfm">
</cfif>
I get no errors but the custOps_shout file won't render?? I do a dump of the
URL variables and I get an empty string?? Why??
If I remove the <cfset> I get the usual URL element is undefined error, so I
need something in this page before the link is clicked to declare
URL.include is nothing.
How do I get around this??
**********************************************************************
A new world of colour, sound and pictures awaits you:
Vodafone Live! More details at http://www.vodafone.com.au/live/
**********************************************************************"
This correspondence is for the named person's use only. It may
contain confidential or legally privileged information or both. "
No confidentiality or privilege is waived or lost by any "
mistransmission. If you receive this correspondence in error, please
immediately delete it from your system and notify the sender. You
must not disclose, copy or rely on any part of this correspondence
if you are not the intended recipient.
Any views expressed in this message are those of the individual sender,
except where the sender expressly, and with authority, states them to
be the views of Vodafone.
This email has been checked for viruses.
**********************************************************************
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/
-------------------------------------------------------
Maddocks
Tel: (03) 92880555 International: +61 3 92880555
Fax: (03) 92880666 International: +61 3 92880666
Web: http://www.maddocks.com.au
-------------------------------------------------------
The information in this electronic mail is privileged
and confidential, intended only for use of the individual
or entity named. If you are not the intended recipient,
any dissemination, copying or use of the information is
strictly prohibited. If you have received this transmission
in error please delete it immediately from your system
and inform us by email on [EMAIL PROTECTED]
-------------------------------------------------------
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/