radwindow error opening windows with paramaters

3 posts, 0 answers
  1. hugo bonilla
    hugo bonilla avatar
    5 posts
    Member since:
    Mar 2006

    Posted 16 Sep 2010 Link to this post

    Hi guys,

    Has anyone encountered and solved this problem. BTW. i'm migrating an old asp.net 2.0 website to vs2010/ .net4.0. Whenever I open a window without parameters they open fine. such as openGoogleWin(). but when i use a function with parameters such as openYahooWin('www.yahoo.com') i get an 'undefined' is null or not an object error.

    my javascript code is as follows:
    function openYahooWin(url)
    {
    var oWindow = window.radopen ("", null);
     

        
         oWindow.SetUrl(url);
         oWindow.SetSize (400, 300);
         oWindow.SetTitle ("yahoo");
         oWindow.SetModal("True");
         //oWindow.VisibleStatusBar = false;
         



    }
  2. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 17 Sep 2010 Link to this post

    Hello Hugo,

    Is there a reason why your not passing the url in the radopen call? Maybe that could make a difference. Also, is the undefined error being caused because of your url not existing or something else? Have you tried debugging it using FireBug or IE Developer Toolbar for IE8, to see where the error is being thrown by?

    I hope that helps.
  3. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 21 Sep 2010 Link to this post

    Hi Hugo,

    The code that you posted looks OK (just keep in mind that you need to provide the full Url as the parameter, i.e. openYahooWin('http://www.yahoo.com') or you would get a "resource cannot be found" error because the browser will look for a file called www.yahoo.com in your project's folder.

    At this point I cannot tell what the reason for the problem might be, but if you send me a sample application, I will check it and get back to you right away.

    Sincerely yours,
    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
Back to Top