1 Reply Latest reply on Dec 14, 2007 9:25 PM by Newsgroup_User

    ColdFusion.Window.getWindowObject causes exception on IE

      I am getting the error "Exception Thrown and not caught" on IE7, the code works on Firefox. I have been working on this for more than 8 hours. I need to capture the coordinates of a CFWINDOW so that if the user 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). Here 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">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title>
      <script type="text/javascript">
      moveListener = function()
      if (ColdFusion.Window != null)
      { var w = ColdFusion.Window.getWindowObject('testWindow');

      setCoords = function(ob,x,y)
      { alert(x);
      <body onload="javascript:moveListener()">
      <CFWINDOW closable="true" initshow="true" name="testWindow">
      Test test