Hi,

I ended up doing this in the frameset and it works:
<script language="JavaScript"><!--
if (parent != self)
    top.location.href = location.href;
        self.AcctList.location.href = "RR_ACH_Info_banner.cfm";
//-->
</script>

Thanks,
James
-----Original Message-----
From: s. isaac dealey [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 12:16 PM
To: CF-Talk
Subject: RE: RE: SOT- refreshing a frameset


Instead of using location.href = blah you should use 
location.reload() to refresh any given frame. 

You may be running into a base target issue. If any of your 
frames contain a base target tag <base target="framename"> 
then all javascript executed on the current page will be 
executed relative to the target frame. (Don't ask me why, I 
think it's one of the most phenomenally stupid ideas I've ever 
heard.) So in order to execute any JavaScript code that 
exists in the current page, you have to reference the functions 
as top.frames.currentframename.functionname(arguments) instead 
of just functionname(arguments)... 

hth

Isaac

Original Message -----------------------
Try something like this:

At the end of your template in the MainFrame that updates the data, call a
function that exists in the AcctList frame. 

AcctList.refreshAcctList();

Then, in the AcctList frame have

function refershAcctList{
        setTimeout('top.location.href = location.href;',500);
}

The delay may help the data have a chance to save and be available.

-----Original Message-----
From: James Johnson [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 1:32 AM
To: CF-Talk
Subject: SOT- refreshing a frameset


Hello,

I have a frameset containing 3 frames; banner, AcctList, MainFrame. The page
in AcctList shows the results of a query. If the user inserts a new record
from the page in MainFrame, I need the page in AcctList to update itself. I
can't get the AcctList page to refresh via code.

UpdateAccount (MainFrame)
<!--- do this stuff --->
<cflocation url="RR_ACH_Info.cfm?ACHID=#ACHID#" addtoken="no"> 

Where RR_ACH_Info.cfm is the parent frameset

In RR_ACH_Info.cfm I have some "frame busting code" which should refresh the
contents of the frameset, but doesn't.

<script language="JavaScript"><!--
if (parent != self)
    top.location.href = location.href;
//-->
</script>

The first lines of code in the AcctList page (RR_ACH_Info_AccountList.cfm)
contains this query

<cfquery name="getACHInfo" datasource="#DSN#">
        SELECT CustAccountNum, ACHID
        FROM ACHData
        WHERE ResellerID = #SESSION.RRUpload.ResellerID#
</cfquery>

All pages have this in the <head></head> section to prevent caching:

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="pragma" content="no-cache">

I've done a similar technique in the past, but this frameset is in a pop-up
window. Could that be the problem? Does anyone have any other ideas or
suggestions?

Thanks,
James




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to