Hello All,
I get the following error when I click on my RadButton: "Microsoft JScript runtime error: '$telerik' is undefined." Here is how my RadButton is setup:
Here are the Javascript functions:
The following code is where the error is shown: var e=$telerik.isMouseOverElementEx(this.get_element(),i);
When I continue with debugging the program, the RadWindow is closed, but I'm not sure why I am getting this error at all. I am able to close the RadWindow using the Javascript function just fine from an asp:Button.
I'd greatly appreciate any insight into why this is happening.
Thanks!
Casey
I get the following error when I click on my RadButton: "Microsoft JScript runtime error: '$telerik' is undefined." Here is how my RadButton is setup:
<
telerik:RadButton
ID
=
"rbtnCancel"
runat
=
"server"
Text
=
"Return to Forms Central"
OnClientClicked
=
"btnCloseWin"
Font-Names
=
"Arial"
Font-Size
=
"Medium"
AutoPostBack
=
"false"
>
</
telerik:RadButton
>
Here are the Javascript functions:
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 as well)
return
oWindow;
}
function
btnCloseWin(sender, eventArgs) {
var
oWindow = GetRadWindow();
oWindow.Close();
}
The following code is where the error is shown: var e=$telerik.isMouseOverElementEx(this.get_element(),i);
When I continue with debugging the program, the RadWindow is closed, but I'm not sure why I am getting this error at all. I am able to close the RadWindow using the Javascript function just fine from an asp:Button.
I'd greatly appreciate any insight into why this is happening.
Thanks!
Casey