Thanks James that does do the trick. Is this a hack or a good way of handling this? What if the page takes a long time to load? Or the browser takes a long time to process the content? Will half a second suffice?
Chad > -----Original Message----- > From: James Wolfe [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 12, 2008 2:26 PM > To: CF-Talk > Subject: Re: Exception Thrown and Not Caught in IE > > Just rename the onLoadFunction function to > > onLoadFunction_delayed() > > and create a new "onLoadFunction" that has only the following line of code > in it: > > window.setTimeout("onLoadFunction_delayed()",500); > > That will call the onLoadFunction_delayed function half a second after the > page finishes loading and you should be fine > > > I am experimenting with <CFLayout> and I am running into a strange > > error that only happens in IE: > > "Exception Thrown and Not Caught" > > > > It works fine in Firefox. > > > > What I want to do is display a tab in <CFLayout> if that tab is in my > > Query result. If that tab is not in my query results I hide it. > > > > So I am using javascript to hide/unhide tabs inside of a cfloop to > > decide that needs hidden and what does not. > > > > I load the javascript in the <body> tags onLoad attribute. Should I > > be loading the JS differently? > > > > > > <cfset CareyProvidePlate_List = "Tab1,Tab2,Tab3" /> > > > > function onLoadFunction() { > > <cfloop list="#CareyProvidePlate_List#" index="item"> > > <cfoutput> > > <cfif findNoCase(item, currentTicket.CAREYPROVIDE)> > > ColdFusion.Layout.showTab('ticketTabs','#item#'); > > <cfelse> > > ColdFusion.Layout.hideTab('ticketTabs','#item#'); > > </cfif> > > </cfoutput> > > </cfloop> > > } > > > > > > <body onload="onLoadFunction();"> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307354 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4