Also, <cfset #URL.include# = ""> should be written, <cfset URL.include = "">
You don't need hashes all over the place :)
-- geoff http://www.daemon.com.au/
Hickman, Matt wrote:
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??
--- 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/
