window.print crashes ie 6

4 posts, 0 answers
  1. mac
    mac avatar
    137 posts
    Member since:
    May 2008

    Posted 22 Apr 2009 Link to this post

    Has anyone run into the issue of window.print(); within a radwindow to cause Internet Explorer to crash? This is only affecting some users of IE 6.0.28 and IE6.0.29. I am using the standard method of OpenRadWindow / RadWindowManager. Its happening constantly to my users.

    I have tried multiple variations of the following to no avail


    <
    a href="javascript:" onclick="window.print();return false;">print</a>

     

     

  2. mac
    mac avatar
    137 posts
    Member since:
    May 2008

    Posted 23 Apr 2009 Link to this post

    Bump...
    Details
    Using the following on parent page
    <script type="text/javascript">  
     
      function OpenPositionedWindow(oButton, url, windowName)  
            {  
                var oWnd = window.radopen(url,windowName);  
            }  
            function openRadWindow(KeyID)  
            {  
          var oWnd = radopen("Ctrls/BasicPopup.html?ConfirmType=Termination&KeyID=" +KeyID, "RadWindow1" );  
              oWnd.center();  
            }  
            
    </script> 
    <telerik:RadWindowManager   ID="RadWindowManager1" runat="server" /> 
     <href="#" onclick="openRadWindow('<%#DataBinder.Eval(Container.DataItem,"TermID")%>'); return false;">  
    Popup Source
    <!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> 
        <title>Untitled Page</title> 
          <title>Untitled Page</title> 
        <script language="Javascript1.2">  
      <!--  
      function printpage() {  
      window.print();  
      }  
      //--> 
    </script> 
    </head> 
    <body> 
               
        <href="javascript:" onclick="window.print();return false;">print 1</a> 
                
            <br /> 
                <href="JavaScript:window.print();">Print this page</a>   
           
                  <br /> 
                  <onclick="printpage();" href="#">Another version</a> 
    <INPUT TYPE="button" value="Print Button" onClick="window.print()" /> 
     
    </body> 
    </html> 

    Internet explorer crashes on every instance of window.print when using ie6.0.2900 sp2

    mac
  3. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 27 Apr 2009 Link to this post

    Hello Mac,

    I used your code and prepared a simple test project, but I was not able to reproduce the problem. Basically the RadWindow control is an IFRAME and it behaves just like one. Could you please replace the RadWindow control with an IFRAME and test the same code inside it? For your convenience I have attached my project to this thread. In the project I have implemented the two approaches - by using a RadWindow and by using an IFRAME.
    In case that you still experience the problem with RadWindow control and the same problem does not appears in the IFRAME control, could you please open a new support ticket and send us your full project? Once we have a better view over your exact setup we will do our best to provide a solution for you.

    Greetings,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  4. mac
    mac avatar
    137 posts
    Member since:
    May 2008

    Posted 27 Apr 2009 Link to this post

    Hi Fiko,
    You can close this ticket if you wish. I was able to pin down that the event was being caused by a float:left element within the parent ID tag. MSDN docs are here. http://support.microsoft.com/kb/913788 . Essentially.. I don't know why.. the float element wrapping the radgrid would allow the radwindow to open but on clicking the javascript.print function within the radwindow it would crash. Once I isolated the float as being the culprit, I was able to reproduce the issue with expected results. Very strange, very annoying bug that was quite a few hours in determining the issue.
    PS: the most difficult thing was finding the specific browser build that woud crash as other IE6.0.28/29 were just fine.

    Good day.
    mac

Back to Top