Not work oWnd.get_contentFrame().contentWindow.CalledFn();

5 posts, 0 answers
  1. Sari
    Sari avatar
    3 posts
    Member since:
    Oct 2010

    Posted 05 Oct 2010 Link to this post

    Hello.

    I it is necessary from Default.aspx to cause function in open window RadWindow. Function cause when window is loaded,

    Default.spx  javascript code:

    var oWnd = GetRadWindowManager().getWindowByName( "RadWindow1");

    oWnd.get_contentFrame().contentWindow.CalledFn();

    Radwindow  javascript code:

    function calledFn()
    {
      alert("ok");  
    }

    Error:Mistake of the execution Microsoft JScript: Object does not support this characteristic or method

    That wrong?

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 05 Oct 2010 Link to this post

    Hello Sari,


    From your code I can see that your function name is not unique. Since javascript is case sensitive, you need to make sure that you are using the exact name for the function.

    Default.aspx  javascript code:

             var oWnd = GetRadWindowManager().getWindowByName( "RadWindow1");

             oWnd.get_contentFrame().contentWindow.calledFn();

    Radwindow  javascript code:

           function calledFn()
           {
                  alert("ok");  
           }



    Regards,
    Shinu.
  3. Sari
    Sari avatar
    3 posts
    Member since:
    Oct 2010

    Posted 06 Oct 2010 Link to this post

    Has Changed the name to functions on unique but this nothing do not give.
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 07 Oct 2010 Link to this post

    Hi Sari,

    If the functions are named correctly and there is only one RadWindowManager on the page, this code should work. For convenience I attached a small sample based on your code - I hope it helps.


    Best wishes,
    Georgi Tunev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Sari
    Sari avatar
    3 posts
    Member since:
    Oct 2010

    Posted 08 Oct 2010 Link to this post

    Thank you.
    Work. It was in my carelessness. In Radwindow function was сalledFn(), and Default.aspx CalledFn(). Mainly I write to Vb.Net, but VB.Net is case insensitive. Therefore missed the error. While in the message posted on the forum, both functions are spelled correctly.I saw an error when I started to compare my code with your example.
Back to Top