RE: Exception Thrown and Not Caught in IE

2008-06-12 Thread Chad Gray
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  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  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  tags onLoad attribute.  Should I
> > be loading the JS differently?
> >
> >
> > 
> >
> > function onLoadFunction() {
> > 
> > 
> > 
> > ColdFusion.Layout.showTab('ticketTabs','#item#');
> > 
> > ColdFusion.Layout.hideTab('ticketTabs','#item#');
> > 
> > 
> > 
> > }
> >
> >
> > 
> 
> 
> 

~|
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


Re: Exception Thrown and Not Caught in IE

2008-06-12 Thread James Wolfe
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  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  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  tags onLoad attribute.  Should I 
> be loading the JS differently?
> 
> 
>
> 
> function onLoadFunction() {
> 
>   
>   
>   ColdFusion.Layout.showTab('ticketTabs','#item#');
>   
>   ColdFusion.Layout.hideTab('ticketTabs','#item#');
>   
>   
> 
> }
> 
> 
> 


~|
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


RE: Exception Thrown and Not Caught in IE

2008-06-12 Thread Chad Gray
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  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  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  tags onLoad attribute.  Should I be
> loading the JS differently?
> 
> 
> 
> 
> function onLoadFunction() {
> 
>   
>   
>   ColdFusion.Layout.showTab('ticketTabs','#item#');
>   
>   ColdFusion.Layout.hideTab('ticketTabs','#item#');
>   
>   
> 
> }
> 
> 
> 
> 
> 
> 

~|
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


Exception Thrown and Not Caught in IE

2008-06-12 Thread Chad Gray
I am experimenting with  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  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  tags onLoad attribute.  Should I be loading 
the JS differently?


 

function onLoadFunction() {



ColdFusion.Layout.showTab('ticketTabs','#item#');

ColdFusion.Layout.hideTab('ticketTabs','#item#');



}





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