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

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

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

Reply via email to