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/