Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfif with iframe

Status
Not open for further replies.

takethapowerback

IS-IT--Management
May 2, 2001
13
US
I don't know if this is possible but Im building a webpage
that has several other pages and Im using iframe to display pages within the format of the main page. I was wondering if I could use cfif and cfelse to have my main page always loaded but display the other pages within my main page without having to copy the code from my main page to another page with the iframe set to the page I want displayed and link to it. Im aware that this may not make sense at all but if it does to you please help.

Thanks in advanced!!

132.jpg


TTPB
A+ Network+ MCP
 
Are you asking if CF will work with Iframes?

Yes it will;

I think you could do this by doing a

<CFIF URL EQ This>
Display this
<CFELSE>
Display that
<CFIF>

This way your page remains the same and all your code remaines on one page - Might be confusing SQL though.

Hope that helps.

Monoone
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top