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

radwindow error opening windows with paramaters

2 Answers 46 Views
Window
This is a migrated thread and some comments may be shown as answers.
hugo bonilla
Top achievements
Rank 1
hugo bonilla asked on 17 Sep 2010, 02:37 AM
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 Answers, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 17 Sep 2010, 02:12 PM
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.
0
Georgi Tunev
Telerik team
answered on 21 Sep 2010, 02:34 PM
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
Tags
Window
Asked by
hugo bonilla
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Georgi Tunev
Telerik team
Share this question
or