or
<script language=
"javascript"
type=
"text/javascript"
>
function
confirmCallBackFn(arg) {
if
(arg ==
true
) {
//should retun true
}
if
(arg ==
false
) {
//should retun false
}
}
</script>
rdwndwPersonal.RadConfirm(
"Are you sure?"
,
"confirmCallBackFn"
, 300, 100,
null
,
"My Confirm"
);
I am upgrading Telerik RadControls for ASP.Net Ajax from 2008.2.826 to 2009.2.701. For the most part things seem to be working well except for a few skinning issues and one very nagging JavaScript error.
The JavaScript error I need some help on produces the following:
b.toUpperCase is not a function.
Sys.__upperCaseTypes[b.toUpperCase()]=this; This is where it bombs (MicrosoftAjax.js)
Called by:
c.registerEnum(b,"TreeNodeExpandMode",{ClientSide:0,ServerSide:1,ServerSideCallBack:2,WebService:3}); (RadTreeViewSripts.js)
It seems like the object (b) being pass to the Sys.__upperCaseTypes does not implement the toUpperCase method.
Any help would be appreciated.
Thanks,
Andy Espinosa
Monster.com
<
telerik:RadButton
ID
=
"btnTitleDetails"
runat
=
"server"
EnableEmbeddedSkins
=
"False"
Skin
=
"Metro_BLT"
Text
=
"Title Details"
onClientClicked
=
"function(sender, args){openRadWin(sender, args, '9953');}"
AutoPostBack
=
"false"
/>
The Javascript from the masterpage:
<
script
type
=
"text/javascript"
>
function openRadWin(sender, args, propId) {
var url = location.href;
var baseURL = url.substring(0, url.indexOf('/', 14));
radopen(baseURL + "/TitleDetail.aspx?&propid=" + propId, "RadWindow1");
}
</
script
>