I am using the below code to try to display a radalert or confirm server-side and am getting this error:
1.)Microsoft JScript runtime error: '_visibilityMode' is null or not an object
2.) Microsoft JScript runtime error: Object doesn't support this property or method
Code:
ScriptManager
.RegisterStartupScript(this, this.GetType(), "WindowOpen", "radalert('Test', null, null, 'Test')", true);
I get the same problem if the code is in a Javascript function and that function is called.
ie.
function
openNewWindow()
{
var windowURL = "www.yahoo.com";
var oWnd = radopen("http://" + windowURL, null);
oWnd.center();
//var websiteName = getWebsiteName(oWnd.get_navigateUrl());
//Add new tab to the tabstrip
tabStrip.trackChanges();
var tab = new Telerik.Web.UI.RadTab();
tab.set_text(
"Test");
tabStrip.get_tabs().add(tab);
tab.set_imageUrl(oWnd.get_navigateUrl() +
"/favicon.ico");
tabStrip.commitChanges();
//Select this tab
tab.select();
}
the code is breaking on: var oWnd = radopen("http://" + windowURL, null);
Any ideas?
Thanks!