Re: ColdFusion.Window.getWindowObject causes exception on IE

2007-12-15 Thread Dustin M. Snell
Thank you so much. I really appreciate it.

Composed via iPhone. Please forgive typos.

On Dec 14, 2007, at 10:55 PM, Azadi Saryev [EMAIL PROTECTED] wrote:

 well, here it is:

 tested it - saw exception.
 tested it in FF with ?cfdebug added to url - saw same exception logged
 in the logger.
 why the exception? because your cfwindow does not yet exists when your
 function tries to access it.
 remove the onload=... from the body tag, and add
 cfscriptajaxOnLoad('moveListener');/cfscript just before the  
 closing
 /body.  worked like a charm for me...

 ---
 Azadi Saryev
 Sabai-dee.com
 http://www.sabai-dee.com



 Dustin M. Snell wrote:
 How could you guys not answer this?  I have been on and off this list
 since 1998. The least I would expect is for someone to try it and
 either confirm or deny that it is a problem with cf. At least then I
 could elevate it as a bug. Is cftalk not what it used to be?

 Composed via iPhone. Please forgive typos.

 On Dec 14, 2007, at 8:05 AM, Dustin Snell [EMAIL PROTECTED]
 wrote:


 I am getting the error “Exception Thrown and not caught” on IE7,
 code works on Firefox. Have been working on this for more than 8 hou
 rs. I need to capture the coordinates of a CFWINDOW so that if the u
 ser goes to another page on the site the window can be recreated in
 the same place. Just put this in any CFM file. (If anyone knows how
 to fix or a better way of doing it I would be very appreciative). He
 re is very simple code to reproduce:

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
 
 html xmlns=http://www.w3.org/1999/xhtml;
 head
 meta http-equiv=Content-Type content=text/html;  
 charset=utf-8 /
 titleUntitled Document/title
   script type=text/javascript
   moveListener = function()
   {
   if (ColdFusion.Window != null)
   { var w = ColdFusion.Window.getWindowObject('testWindow');
   w.on('move',setCoords,w);
   }
   }

   setCoords = function(ob,x,y)
   { alert(x);
   }
   /script
 /head
 body onload=javascript:moveListener()
   CFWINDOW closable=true initshow=true name=testWindow
   Test test
   /CFWINDOW
 /body
 /html







 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294867
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: ColdFusion.Window.getWindowObject causes exception on IE

2007-12-14 Thread Dustin M. Snell
How could you guys not answer this?  I have been on and off this list  
since 1998. The least I would expect is for someone to try it and  
either confirm or deny that it is a problem with cf. At least then I  
could elevate it as a bug. Is cftalk not what it used to be?

Composed via iPhone. Please forgive typos.

On Dec 14, 2007, at 8:05 AM, Dustin Snell [EMAIL PROTECTED] 
  wrote:

 I am getting the error “Exception Thrown and not caught” on IE7,  
 code works on Firefox. Have been working on this for more than 8 hou 
 rs. I need to capture the coordinates of a CFWINDOW so that if the u 
 ser goes to another page on the site the window can be recreated in  
 the same place. Just put this in any CFM file. (If anyone knows how  
 to fix or a better way of doing it I would be very appreciative). He 
 re is very simple code to reproduce:

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd 
 
 html xmlns=http://www.w3.org/1999/xhtml;
 head
 meta http-equiv=Content-Type content=text/html; charset=utf-8 /
 titleUntitled Document/title
script type=text/javascript
moveListener = function()
{
if (ColdFusion.Window != null)
{ var w = ColdFusion.Window.getWindowObject('testWindow');
w.on('move',setCoords,w);
}
}

setCoords = function(ob,x,y)
{ alert(x);
}
/script
 /head
 body onload=javascript:moveListener()
CFWINDOW closable=true initshow=true name=testWindow
Test test
/CFWINDOW
 /body
 /html


 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294859
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: ColdFusion.Window.getWindowObject causes exception on IE

2007-12-14 Thread Azadi Saryev
check your post on the adobe forums - i have answered there

---
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com



Dustin M. Snell wrote:
 How could you guys not answer this?  I have been on and off this list  
 since 1998. The least I would expect is for someone to try it and  
 either confirm or deny that it is a problem with cf. At least then I  
 could elevate it as a bug. Is cftalk not what it used to be?

 Composed via iPhone. Please forgive typos.

 On Dec 14, 2007, at 8:05 AM, Dustin Snell [EMAIL PROTECTED] 
   wrote:

   
 I am getting the error “Exception Thrown and not caught” on IE7,  
 code works on Firefox. Have been working on this for more than 8 hou 
 rs. I need to capture the coordinates of a CFWINDOW so that if the u 
 ser goes to another page on the site the window can be recreated in  
 the same place. Just put this in any CFM file. (If anyone knows how  
 to fix or a better way of doing it I would be very appreciative). He 
 re is very simple code to reproduce:

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd 
 
 html xmlns=http://www.w3.org/1999/xhtml;
 head
 meta http-equiv=Content-Type content=text/html; charset=utf-8 /
 titleUntitled Document/title
script type=text/javascript
moveListener = function()
{
if (ColdFusion.Window != null)
{ var w = ColdFusion.Window.getWindowObject('testWindow');
w.on('move',setCoords,w);
}
}

setCoords = function(ob,x,y)
{ alert(x);
}
/script
 /head
 body onload=javascript:moveListener()
CFWINDOW closable=true initshow=true name=testWindow
Test test
/CFWINDOW
 /body
 /html



 

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294860
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: ColdFusion.Window.getWindowObject causes exception on IE

2007-12-14 Thread Azadi Saryev
well, here it is:

tested it - saw exception.
tested it in FF with ?cfdebug added to url - saw same exception logged 
in the logger.
why the exception? because your cfwindow does not yet exists when your 
function tries to access it.
remove the onload=... from the body tag, and add 
cfscriptajaxOnLoad('moveListener');/cfscript just before the closing 
/body.  worked like a charm for me...

---
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com



Dustin M. Snell wrote:
 How could you guys not answer this?  I have been on and off this list  
 since 1998. The least I would expect is for someone to try it and  
 either confirm or deny that it is a problem with cf. At least then I  
 could elevate it as a bug. Is cftalk not what it used to be?

 Composed via iPhone. Please forgive typos.

 On Dec 14, 2007, at 8:05 AM, Dustin Snell [EMAIL PROTECTED] 
   wrote:

   
 I am getting the error “Exception Thrown and not caught” on IE7,  
 code works on Firefox. Have been working on this for more than 8 hou 
 rs. I need to capture the coordinates of a CFWINDOW so that if the u 
 ser goes to another page on the site the window can be recreated in  
 the same place. Just put this in any CFM file. (If anyone knows how  
 to fix or a better way of doing it I would be very appreciative). He 
 re is very simple code to reproduce:

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd 
 
 html xmlns=http://www.w3.org/1999/xhtml;
 head
 meta http-equiv=Content-Type content=text/html; charset=utf-8 /
 titleUntitled Document/title
script type=text/javascript
moveListener = function()
{
if (ColdFusion.Window != null)
{ var w = ColdFusion.Window.getWindowObject('testWindow');
w.on('move',setCoords,w);
}
}

setCoords = function(ob,x,y)
{ alert(x);
}
/script
 /head
 body onload=javascript:moveListener()
CFWINDOW closable=true initshow=true name=testWindow
Test test
/CFWINDOW
 /body
 /html



 

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294861
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4