Error executing Javacsript in another pane (Q3 2009)

2 posts, 0 answers
  1. Fred Taylor
    Fred Taylor avatar
    14 posts
    Member since:
    Sep 2008

    Posted 13 Nov 2009 Link to this post

    Just upgraded from Q2 2009 to Q3 2009(.net35) and I get this error now when I try to execute a javascript in another pane.  This works in Q2 2009.   In IE7, the error is Object doesn't support this property or function.  Similar error in FF.  I have two versions of the script should work.  This script is called from the pane OnclientResized event like so(OnClientResized="LeftResize").  Here are the scripts:

    function LeftResize()
            {
                   
            var splitter = $find("<%= NestedSplitter.ClientID %>");
            var pane = splitter.getPaneById("<%= lframe.ClientID %>");
            var myiframe = pane.getExtContentElement();
            var mycontentWindow = myiframe.contentWindow;
                           
            try {
               mycontentWindow.SizeMe();
                
               }
            catch (e) {
                alert('Error calling content resize.  Please report this error to Network Automation.  Error is:  ' + e.message);
                }

                }

    function LeftResizeV2() {
                    var pane = $find("<%= lframe.ClientID %>");
                    pane.getExtContentElement().contentWindow.SizeMe();
                }


    they will call this js on the target page in Q2:

    function SizeMe()
        {
        
        }





  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 18 Nov 2009 Link to this post

    Hello Fred Taylor,
    I created a simple test page, based on the code you provided, but I was not able to get the error you have. I have attached my test page for your reference. Could you please open a new support ticket and send me a running project that demonstrates the problem you have?

    Greetings,
    Tsvetie
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top