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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access page in frameset with variable

Status
Not open for further replies.

TheVMan

IS-IT--Management
Feb 19, 2001
110
US
I have a page that I'd like to be able to have people access, which is kind of deep in my site structure. Problem is, I use frames and want them to be able to access the page with all the frames intact. When I send them a link to access it, it would look like:

The following code checks to see if the variable is defined, which seems to work OK. If it is, then it passes that value to mainFrame. If it isn't defined, it displays the standard start page. the page.cfm part above doesn't work. I just get a Cannot Display Page browser error. Am I missing something apparent here? I appreciate any advice I can get. Thanks.

I coded this into my cfm page:

<cfif IsDefined(&quot;URL.URL&quot;)>
<frameset rows=&quot;93,574*&quot; cols=&quot;154,785*&quot; frameborder=&quot;NO&quot; border=&quot;0&quot; framespacing=&quot;0&quot;>
<frame name=&quot;cornerFrame&quot; scrolling=&quot;NO&quot; noresize src=&quot;Upperleftcorner-frame.htm&quot; frameborder=&quot;NO&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; >
<frame name=&quot;topFrame&quot; scrolling=&quot;NO&quot; src=&quot;topframe.htm&quot; frameborder=&quot;NO&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; >
<frame name=&quot;leftFrame&quot; scrolling=&quot;NO&quot; src=&quot;Leftmenu-frame.htm&quot; frameborder=&quot;NO&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; noresize>
<frameset rows=&quot;466,84&quot; cols=&quot;*&quot;>
<frame name=&quot;mainFrame&quot; src=&quot;#URL.URL#&quot; scrolling=&quot;AUTO&quot; marginwidth=&quot;30&quot; marginheight=&quot;20&quot; frameborder=&quot;NO&quot;>
<frame src=&quot;Bottomlinkframe.htm&quot; name=&quot;bottomlinkframe&quot; scrolling=&quot;NO&quot; frameborder=&quot;NO&quot;>
</frameset>
</frameset>

<cfelse>
<frameset rows=&quot;93,574*&quot; cols=&quot;154,785*&quot; frameborder=&quot;NO&quot; border=&quot;0&quot; framespacing=&quot;0&quot;>
<frame name=&quot;cornerFrame&quot; scrolling=&quot;NO&quot; noresize src=&quot;Upperleftcorner-frame.htm&quot; frameborder=&quot;NO&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; >
<frame name=&quot;topFrame&quot; scrolling=&quot;NO&quot; src=&quot;topframe.htm&quot; frameborder=&quot;NO&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; >
<frame name=&quot;leftFrame&quot; scrolling=&quot;NO&quot; src=&quot;Leftmenu-frame.htm&quot; frameborder=&quot;NO&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; noresize>
<frameset rows=&quot;466,84&quot; cols=&quot;*&quot;>
<frame name=&quot;mainFrame&quot; src=&quot;Main-Frame.htm&quot; scrolling=&quot;AUTO&quot; marginwidth=&quot;30&quot; marginheight=&quot;20&quot; frameborder=&quot;NO&quot;>
<frame src=&quot;Bottomlinkframe.htm&quot; name=&quot;bottomlinkframe&quot; scrolling=&quot;NO&quot; frameborder=&quot;NO&quot;>
</frameset>
</frameset>
</cfif>
 
possoibly the obvious, make sure you have enclosed the above code within <cfoutput></cfoutput>

Just a guess?

HTH,
Marc
 
Thanks Marc. You did point out the obvious, and it was exactly the problem. Thank you again.

V
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top