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:307351
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to