Certainly...

Here's a snippet from my navigation include:

 <!--- check if we are on the company page --->
        <CFIF #URL.pageName# CONTAINS "company">
                  <tr> 
          <td class="navigationOn"> &gt; company</td>
          </tr>
        <CFELSE>
          <tr> 
          <td class="navigation"> &gt; <a
href="default.cfm?pageName=company" class="bottomCopy">company</a></td>
          </tr>
        </CFIF>

My iFrame code from the "default.cfm" page:

<td width="527" height="299" valign="top"><IFRAME Src="iframe.cfm"
width="525" height="299"></IFRAME></td>

The code in my iFrame:

<!--- Poll the database for the right page information. if page isn't
found, default to home. --->
<cfparam name="URL.pageName" default="home">

<CFQUERY NAME="qPages" DATASOURCE="bcd">
        SELECT          *
        FROM            tblPages
        WHERE           pageName = '#URL.pageName#'
</CFQUERY>

<cfoutput query="qPages">
        <td class="iFrameCopy">#pageContent#<br>
    </td>
        </cfoutput>

I'm guessing that even though the entire pages is reloading, the iFrame
isn't picking up the URL.pageName variable, and I'm unsure how to tackle
that bug without duplicate iFrames, which would just feel terribly
inefficient to me.

Thanks again,

Russ

> -----Original Message-----
> From: Gyrus [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, October 03, 2002 1:33 PM
> To: CF-Talk
> Subject: Re: URL.variables across frames
> 
> 
> Could you post some code?
> 
> One thing to check: are the navigation links you mention on 
> the main page inside or outside the IFRAME? If you're linking 
> to a page, with a query string, I don't think that page's URL 
> vars will be accessible to another page in an IFRAME on that 
> page - just like frames, it's a totally different request to 
> the server...
> 
> Maybe you need to pass the parent page's query string through 
> to the IFRAME via the SRC attribute:
> 
> <iframe src="iframePage.cfm?#CGI.QUERY_STRING#"></iframe>
> 
> Depends on what you're doing, of course.
> 
> - Gyrus
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> - [EMAIL PROTECTED]
> work: http://www.tengai.co.uk
> play: http://www.norlonto.net
> - PGP key available
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 
> ----- Original Message -----
> From: "Russ" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Thursday, October 03, 2002 7:25 PM
> Subject: URL.variables across frames
> 
> 
> > Admitted newbie on this, but not finding (or understanding) 
> the right 
> > way--and actually, it seems to me that this might be the 
> wrong way--to 
> > pull it off.
> >
> > Scenario:
> >
> > Main page has navigation passing URL variables.
> > iFrame page SHOULD catch those variables and pull 
> appropriate content 
> > from the database.
> >
> > However, instead, the iFrame simply resorts back to the 
> cfparam value 
> > that it's defaulted to.
> >
> > Can anyone offer any assistance or direction toward the correct 
> > solution?
> >
> > Thanks,
> >
> > Russ
> >
> > 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to