I know how it is. :) Sometimes just a 2nd pair of eyes. glad I could help
Isaac > Oh yeah, you're absolutely right. I usually do, just > forgot this time. > James > -----Original Message----- > From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] > Sent: Friday, August 08, 2003 7:03 PM > To: CF-Talk > Subject: RE: RE: SOT- refreshing a frameset > If it works I suppose that's good... > You might want to clean it up a bit tho: > <script language="JavaScript"><!-- > if (parent != self) { > top.location.href = location.href; > self.AcctList.location.href = "RR_ACH_Info_banner.cfm"; > } > //--></script> > If statements should always include the {} to denote where > they begin and end. It's possible to make them work > without, but the only > benefit this can lead to is confusion and headaches later. > If you consider > that a benefit. :) >> 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/uns >> ubscribe.cfm?user=633.558.4 > s. isaac dealey 972-490-6624 > team macromedia volunteer > http://www.macromedia.com/go/team > chief architect, tapestry cms http://products.turnkey.to > onTap is open source http://www.turnkey.to/ontap > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ~~~~~~~~~~~| > 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 > Signup for the Fusion Authority news alert and keep up > with the latest news in ColdFusion and related topics. > http://www.fusionauthority.com/signup.cfm > Unsubscribe: http://www.houseoffusion.com/cf_lists/uns > ubscribe.cfm?user=633.558.4 s. isaac dealey 972-490-6624 team macromedia volunteer http://www.macromedia.com/go/team chief architect, tapestry cms http://products.turnkey.to onTap is open source http://www.turnkey.to/ontap ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 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 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

