Yeah, it's not going to resolve the way you want. The frames have no
solid connection to the calling page (frameset). Your best bet would be
to include the shared variables in a URL string when you call the
frames:

<frame name="tree" src="dsp_treeframe.cfm?sharedVar=#thisNthat#"
marginwidth="2"
marginheight="2" scrolling="auto" frameborder="0">

You could use SESSION or CLIENT scope, but it seems unnecessary, and
then you would have to worry about locking.

Adam Wayne Lehman
Web Systems Developer
Johns Hopkins Bloomberg School of Public Health
Distance Education Division


-----Original Message-----
From: Greg Luce [mailto:greg@;thedatabaseplace.com] 
Sent: Monday, October 21, 2002 11:48 AM
To: CF-Talk
Subject: Frames Issue

OK, I know this is going to be simple, but I haven't used frames very
much.
I'm in a fusebox setting. I have a variable which I'm setting in one
template. Then the next template is included which defines a frameset.
This
variable is available in this template. But one of the frames is a cf
template and the variable isn't resolvable there. I tried request and
client
scope with no luck.

Here's the excerpt from my fbx_switch:
 <cfcase value="tree2">
  <cfinclude template="qry_drawtree.cfm">
  <cfinclude template="act_setvar.cfm"> SETS THE VARIABLE
  <cfinclude template="dsp_tree2.cfm"> DEFINES THE FRAMESET
 </cfcase>

Here's the frameset:
<frameset  rows="60,*,40" border="0">
    <frame name="header" src="dsp_header.cfm" marginwidth="15"
marginheight="15" scrolling="no" frameborder="0">
 <frameset  cols="300,*" border="0">
     <frame name="tree" src="dsp_treeframe.cfm" marginwidth="2"
marginheight="2" scrolling="auto" frameborder="0">
     <frame name="content" src="dsp_content.cfm" marginwidth="15"
marginheight="15" scrolling="auto" frameborder="0">
 </frameset>
    <frame name="footer" src="dsp_footer.cfm" marginwidth="15"
marginheight="15" scrolling="no" frameborder="0">
</frameset>

And my variable isn't resolvable in dsp_treeframe.cfm.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to