RadWindow, Access is denied

5 posts, 1 answers
  1. Phil
    Phil avatar
    273 posts
    Member since:
    Jul 2008

    Posted 23 May 2009 Link to this post

    Hi:

    I have a demo RadWindow that I created for a user group meeting that opens a Google window, and it is now erroring with the following:
      htmlfile: Access is denied.
    And in the dynamic code it is highlighting the following:
      i=document.selection.createRange()
    any ideas what is up?
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 25 May 2009 Link to this post

    Hello Phil,

    To be able to help we need to examine your case more closely. Please open a support ticket and send us a sample project that reproduces this issue - we will check it right away.


    Regards,
    Georgi Tunev
    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.
  3. Phil
    Phil avatar
    273 posts
    Member since:
    Jul 2008

    Posted 26 May 2009 Link to this post

    Hi:
    It is self contained:
    <%@ Page Language="C#" %> 
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <script runat="server"
        protected void Button1_Click(object sender, EventArgs e) 
        { 
            RadWindow _rWindow1 = new RadWindow(); 
            _rWindow1.ID = "rWindow1"
            _rWindow1.NavigateUrl = "http://www.google.com/search?q=telerik+radwindow"
            _rWindow1.Modal = true
            _rWindow1.VisibleOnPageLoad = true
            _rWindow1.Height = 600
            _rWindow1.Width = 800
            RadWindowManager1.Windows.Add(_rWindow1); 
        } 
    </script> 
    <html xmlns="http://www.w3.org/1999/xhtml"
    <head runat="server"
        <title>Demo 1</title> 
    </head> 
    <body> 
        <form id="form1" runat="server"
        <div> 
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
            </telerik:RadScriptManager> 
            <telerik:RadWindowManager ID="RadWindowManager1" runat="server"
            </telerik:RadWindowManager> 
            <asp:Button ID="Button1" runat="server" Text="Google" onclick="Button1_Click" /> 
        </div> 
        </form> 
    </body> 
    </html> 
     

    I do not know if something changed in an IE update.  I am running a Vista Ultimate with IE 7.0.6001.18000
    Phil
  4. Answer
    Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 27 May 2009 Link to this post

    Hi Phil,

    Thank you for the code - I reproduced this issue now.
    The problem however is not related to the RadWindow control. The error is raised in some js file on google.com and it can be reproduced with a standard IFRAME:

    <form id="form1" runat="server">  
    <div>  
        <br /> 
        <script type="text/javascript"
        function openIframe() 
        { 
            var myframe = document.getElementById("iframe1"); 
            myframe.src = "http://www.google.com/search?&q=test1+test2"
        } 
         
        </script> 
        <button onclick="openIframe(); return false;">test iframe</button> 
        <br /> 
        <iframe id="iframe1"></iframe> 
    </div>  
    </form>  

    At this point I cannot tell what is the purpose of this script on google.com, but I noticed that it does not exist on google.co.uk / google.bg, etc. I suggest to use one of the other google domains for now.


    Sincerely yours,
    Georgi Tunev
    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.
  5. Phil
    Phil avatar
    273 posts
    Member since:
    Jul 2008

    Posted 29 May 2009 Link to this post

    Hi:
    Thanks a lot.
    Phil
Back to Top