> I ask for some advice on if this is the best way to pass a URL
> parameter to a nested frame.
>
> In application.cfm I have
>
> <CFIF IsDefined("URL.month")>
> <CFSET SESSION.month="#URL.month#">
> </CFIF>
>
> The frame cannot access the URL parameter directly so I though of
> this work
> around. Am I going to run into problems down the road if I do this?
As Brett says, you can pass the URL parameter down, as long as you pass it
through via the frame building page.
The URL of the inner frames is what called them, so if you have;
<frameset rows="50%,50%">
<frame src="topFrame.cfm?myValue=1" name="topFrame">
<frame src="bottomFrame.cfm?myValue=2" name="bottomFrame">
</frameset>
Then the URL of topFrame is topFrame.cfm?myValue=1, while the URL of
bottomFrame is bottomFrame.cfm?myValue=2
The inner frames cannot see the outer frame's URL, as you could stack the
frames several layers deep, so there'd be several layers of URLs to fight
through.
Remeber that CF is NOT client based, so it doesn't know it's in a frame, for
all it knows, it could be outputting the lyrics to a Doors song, or display
some of daVinci's work - it doesn't really care, it only outputs stuff to
the browser
If you want to pass things from parent frames, but not on the inner frame's
URL, use JavaScript to get the values, then call a CF page with those
values.
Philip Arnold
ASP Multimedia Limited
T: +44 (0)20 8680 1133
"Websites for the real world"
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.