This is a migrated thread and some comments may be shown as answers.

Error executing Javacsript in another pane (Q3 2009)

1 Answer 39 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Fred Taylor
Top achievements
Rank 1
Fred Taylor asked on 13 Nov 2009, 05:18 PM
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()
    {
    
    }





1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 18 Nov 2009, 09:28 AM
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.
Tags
Splitter
Asked by
Fred Taylor
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or