- see footer for list info -<
that's all that was needed. thanks!

...not so sure why REQaction wasn't getting noticed though.


At 14:58 11/04/2006, you wrote:
>- see footer for list info -<
Change the if from REQaction to action

<cfif action is "page1">
<cfinclude template="/test/testpage1.cfm">
<cfelseif action is "page2">
<cfinclude template="/test/testpage2.cfm">
<cfelse>
<cfinclude template="/test/testpage1.cfm">
</cfif>

also maybe you should scope it to url.action.

Allan


  ----- Original Message -----
  From: Shawn Fawcett
  To: Coldfusion Development
  Sent: Tuesday, April 11, 2006 2:47 PM
  Subject: [CF-Dev] trying to include template in body of page from menu


  >- see footer for list info -<
  Hi,

  I'm trying to do something I though would be
  simple. When I click on a link in the menu I want
  it to call a template in the body. Here's what I have so far:

  at the top of the page

  <cfparam name="action" default="page1">
  <cfparam name="REQaction" default="default">

  in menu on side:
  <cfoutput><td width="185"><p>Menu</p>
  <p><a href="#script_name#?action=page1">Page 1</a></p>
  <p><a href="#script_name#?action=page2">Page 2</a></p>
  </td></cfoutput>

  in page body:
  <cfif REQaction is "page1">
  <cfinclude template="/test/testpage1.cfm">
  <cfelseif REQaction is "page2">
  <cfinclude template="/test/testpage2.cfm">
  <cfelse>
  <cfinclude template="/test/testpage1.cfm">
  </cfif>

  what am I missing?



  ARAXI Traductions France
  100 Passage Henri Régnault - 92400 Courbevoie La Défense 6
  Tél. : 01 49 03 41 49 - Fax : 01 49 03 41 42
  _______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo

  --
  CFDeveloper Sponsors:-
  >- Hosting provided by www.cfmxhosting.co.uk -<
  >- Forum provided by www.fusetalk.com -<
  >- DHTML Menus provided by www.APYCOM.com -<
  >- Lists hosted by www.Gradwell.com -<
  >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

ARAXI Traductions France
100 Passage Henri Régnault - 92400 Courbevoie La Défense 6
Tél. : 01 49 03 41 49 - Fax : 01 49 03 41 42 _______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
- Hosting provided by www.cfmxhosting.co.uk -<
- Forum provided by www.fusetalk.com -<
- DHTML Menus provided by www.APYCOM.com -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to