Ya if I execute my code with a button using onClick the code works fine.

It is like the code is running before the page is done processing.

How do I execute the javascript as the LAST thing the page does?



> -----Original Message-----
> From: Chad Gray [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 12, 2008 12:31 PM
> To: CF-Talk
> Subject: Exception Thrown and Not Caught in IE
> 
> 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:307350
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