I am getting some odd behaviour of RadWindow which might be related to me having just updated vs2010 to SP1 and also patching to the latest Telerik distribution.
The following code works fine on my production server:
But when run in debug mode I get a javascript error:
"uncaught type error: Cannot read property 'radwindow' of undefined"
I've trawled the forums and have seen several threads that tie a similar-ish behaviour to mixing http/https pages in radwindows - however I am 100% http (no https anywhere). I should probably add that I'm using the radwindow in a masterpage/content scenario.
Am scratching my head here - not a showstopper as the code works in production, but it means I can't debug it.
The following code works fine on my production server:
function
GetRadWindow()
{
var
oWindow =
null
;
if
(window.radWindow) oWindow = window.radWindow;
//Will work in Moz in all cases, including clasic dialog
else
if
(window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
//IE (and Moz az well)
return
oWindow;
}
But when run in debug mode I get a javascript error:
"uncaught type error: Cannot read property 'radwindow' of undefined"
I've trawled the forums and have seen several threads that tie a similar-ish behaviour to mixing http/https pages in radwindows - however I am 100% http (no https anywhere). I should probably add that I'm using the radwindow in a masterpage/content scenario.
Am scratching my head here - not a showstopper as the code works in production, but it means I can't debug it.