Pravallika
Top achievements
Rank 1
Pravallika
asked on 08 Jul 2014, 11:57 AM
Hai All,
i have a radwindow , whose content is loading from an aspx page, in that i have a norma textboxes and buttons when i click a save button in my radwindow page
i am showing radlalert using radajaxmanager i.e
instead of radajaxmanger1 we even used radwindowmanager1 , propblem is when we run our application in internet explorer we get below exception in telerik.web.ui.scriptwebresource.axd
SCRIPT5007: Unable to get property 'toLowerCase' of undefined or null reference
Telerik.Web.UI.WebResource.axd, line 3240 character 1 in the below line
if(d&&d.tagName.toLowerCase()!="body")
please help!!
i have a radwindow , whose content is loading from an aspx page, in that i have a norma textboxes and buttons when i click a save button in my radwindow page
i am showing radlalert using radajaxmanager i.e
RadAjaxManager1.ResponseScripts.Add(@"radalert('my message !', 330, 210);");
SCRIPT5007: Unable to get property 'toLowerCase' of undefined or null reference
Telerik.Web.UI.WebResource.axd, line 3240 character 1 in the below line
if(d&&d.tagName.toLowerCase()!="body")
please help!!
7 Answers, 1 is accepted
0
Hello,
The following KB article discusses this problem and offers solutions: http://www.telerik.com/support/kb/aspnet-ajax/window/details/opening-a-modal-radwindow-on-page-load-inside-radwindow-under-ie9-and-ie10.
Regards,
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0
Khushboo
Top achievements
Rank 1
answered on 09 Jul 2014, 06:25 AM
Hi Marin,
The solution that u gave is to open a radwindow inside a radwindow... what i am asking is when i show a radalert using code behind i.e
RadWindowManager1.RadAlert("Task CreatedSuccess", 300, 150, "Alert Message", "", ""); it works fine in chrome, in ie it shows radlert preoperly but before it shows it throws an exception
SCRIPT5007: Unable to get property 'toLowerCase' of undefined or null reference
Telerik.Web.UI.WebResource.axd, line 3240 character 1 in the below line
if(d&&d.tagName.toLowerCase()!="body")
The solution that u gave is to open a radwindow inside a radwindow... what i am asking is when i show a radalert using code behind i.e
RadWindowManager1.RadAlert("Task CreatedSuccess", 300, 150, "Alert Message", "", ""); it works fine in chrome, in ie it shows radlert preoperly but before it shows it throws an exception
SCRIPT5007: Unable to get property 'toLowerCase' of undefined or null reference
Telerik.Web.UI.WebResource.axd, line 3240 character 1 in the below line
if(d&&d.tagName.toLowerCase()!="body")
0
Shinu
Top achievements
Rank 2
answered on 09 Jul 2014, 07:04 AM
Hi Khushboo,
Unfortunately I couldn't replicate the issue at my end. Take a look into the sample code snippet which works fine at my end.
ASPX:
C#:
Please have a look into the following forum thread discuss about the same error.
http://www.telerik.com/forums/random-error-in-radalert#WeHl645ry0uiOskAJKyPVA
Please provide one sample code where I can replicate the issue for further help.
Thanks,
Shinu.
Unfortunately I couldn't replicate the issue at my end. Take a look into the sample code snippet which works fine at my end.
ASPX:
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
runat
=
"server"
>
</
telerik:RadWindowManager
>
<
telerik:RadButton
ID
=
"rbtnOpenWin"
runat
=
"server"
Text
=
"Show Alert"
OnClick
=
"rbtnOpenWin_Click"
>
</
telerik:RadButton
>
C#:
protected
void
rbtnOpenWin_Click(
object
sender, EventArgs e)
{
RadWindowManager1.RadAlert(
"Alert Window"
, 200, 200,
"RadAlert"
,
null
);
}
Please have a look into the following forum thread discuss about the same error.
http://www.telerik.com/forums/random-error-in-radalert#WeHl645ry0uiOskAJKyPVA
Please provide one sample code where I can replicate the issue for further help.
Thanks,
Shinu.
0
Khushboo
Top achievements
Rank 1
answered on 09 Jul 2014, 09:30 AM
Hi shinu,
can u put ur codes inside a radwindow and then check in IE if its working?
can u put ur codes inside a radwindow and then check in IE if its working?
0
Shinu
Top achievements
Rank 2
answered on 10 Jul 2014, 02:46 AM
Hi Khushboo,
Please have a look into the sample code snippet which works fine at my end.
ASPX:
C#:
JavaScript:
Please provide your code if it doesn't help.
Thanks,
Shinu.
Please have a look into the sample code snippet which works fine at my end.
ASPX:
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
runat
=
"server"
>
</
telerik:RadWindowManager
>
<
telerik:RadButton
ID
=
"rbtnOpenWindow"
runat
=
"server"
Text
=
"Click"
AutoPostBack
=
"false"
OnClientClicked
=
"openWindow"
>
</
telerik:RadButton
>
<
telerik:RadWindow
ID
=
"rwindowAlertWindow"
runat
=
"server"
>
<
ContentTemplate
>
<
telerik:RadButton
ID
=
"rbtnShowAlert"
runat
=
"server"
Text
=
"Show Alert"
OnClick
=
"rbtnShowAlert_Click"
>
</
telerik:RadButton
>
</
ContentTemplate
>
</
telerik:RadWindow
>
C#:
protected
void
rbtnShowAlert_Click(
object
sender, EventArgs e)
{
RadWindowManager1.RadAlert(
"Alert Window"
, 200, 200,
"RadAlert"
,
null
);
}
JavaScript:
function
openWindow(sender, args) {
$find(
"<%=rwindowAlertWindow.ClientID%>"
).show();
}
Please provide your code if it doesn't help.
Thanks,
Shinu.
0
Khushboo
Top achievements
Rank 1
answered on 10 Jul 2014, 04:53 AM
Master Page.aspx
Default.aspx:
<
telerik:RadWindow
ID
=
"RadWindow1"
runat
=
"server"
Skin
=
"WebBlue"
Behaviors
=
"Close,Maximize,Move,Minimize"
Modal
=
"false"
EnableShadow
=
"true"
KeepInScreenBounds
=
"true"
Width
=
"1000px"
Height
=
"480px"
>
</
telerik:RadWindow
>
<
telerik:RadButton
ID
=
"RadButton1"
runat
=
"server"
Width
=
"20"
Height
=
"20"
ToolTip
=
"Settings"
OnClientClicked
=
"openRadWindowSettings"
AutoPostBack
=
"false"
>
</
telerik:RadButton
>
function openRadWindowSettings(sender, args) {
$find("<%= RadButton1.ClientID %>").setUrl("../../aspx/WebAppl/Default.aspx");
$find("<%= RadButton1.ClientID %>").show();
}
<
telerik:RadScriptManager
runat
=
"server"
ID
=
"RadScriptManager1"
EnablePageMethods
=
"true"
>
<
Scripts
>
</
Scripts
>
</
telerik:RadScriptManager
>
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
Skin
=
"WebBlue"
runat
=
"server"
>
</
telerik:RadWindowManager
>
<
telerik:RadTabStrip
runat
=
"server"
MultiPageID
=
"mpPageView"
Width
=
"100%"
ID
=
"tabTest"
Skin
=
"Sitefinity"
Style
=
"padding-left: 0px; padding-top: 0px;"
>
<
Tabs
>
<
telerik:RadTab
runat
=
"server"
Value
=
"t4"
Text
=
"TAB1"
ForeColor
=
"Black"
Font-Bold
=
"true"
PageViewID
=
"pvTab1"
Selected
=
"true"
Font-Size
=
"11px"
/>
<
telerik:RadTab
runat
=
"server"
Value
=
"tabConfig"
Text
=
"TAB2"
ForeColor
=
"Black"
Font-Bold
=
"true"
PageViewID
=
"pvTab2"
Font-Size
=
"11px"
/>
</
Tabs
>
</
telerik:RadTabStrip
>
<
telerik:RadMultiPage
runat
=
"server"
ID
=
"mpPageView"
SelectedIndex
=
"0"
>
<
telerik:RadPageView
runat
=
"server"
ID
=
"pvTab1"
>
<
telerik:RadAjaxPanel
ID
=
"pnl"
Width
=
"100%"
runat
=
"server"
>
<
table
style
=
"background-color: #FFFFFF; color: Black; width: 100%;"
>
<
tr
style
=
"width: 100%;"
>
<
td
style
=
"width: 50%;"
>
<
asp:Label
ID
=
"lbl1"
runat
=
"server"
Text
=
"Label Name"
></
asp:Label
>
</
td
>
<
td
style
=
"width: 50%;"
>
<
asp:TextBox
ID
=
"tb1"
Width
=
"95%"
runat
=
"server"
></
asp:TextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
style
=
"width: 50%;"
>
<
asp:Label
ID
=
"lbl2"
runat
=
"server"
Text
=
"Label2"
></
asp:Label
>
</
td
>
<
td
style
=
"width: 50%;"
>
<
asp:TextBox
ID
=
"tb2"
Width
=
"95%"
runat
=
"server"
></
asp:TextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
colspan
=
"2"
>
<
telerik:RadButton
ID
=
"rbtnSave"
runat
=
"server"
Text
=
"Save"
ToolTip
=
"Save"
OnClick
=
"rbtnSave_Click"
>
<
Icon
PrimaryIconCssClass
=
"rbSave"
PrimaryIconLeft
=
"4"
PrimaryIconTop
=
"4"
></
Icon
>
</
telerik:RadButton
>
</
tr
>
</
table
>
protected void rbtnSave_Click(object sender, EventArgs e)
{
RadWindowManager1.RadAlert("Message", 300, 150, "Alert Message", "", "");
}
0
Shinu
Top achievements
Rank 2
answered on 11 Jul 2014, 03:27 AM
Hi Khushboo,
In order to open a new page on the click of RadButton configured as StandardButton, you have to handle the client-side event OnClientClicking. In this event open the URL speicfied in the NavigateUrl property using JavaScript. Please do the following modification in your Master Page. The code for calling RadAlert is working fine at my end.
ASPX:
JavaScript:
Thanks,
Shinu.
In order to open a new page on the click of RadButton configured as StandardButton, you have to handle the client-side event OnClientClicking. In this event open the URL speicfied in the NavigateUrl property using JavaScript. Please do the following modification in your Master Page. The code for calling RadAlert is working fine at my end.
ASPX:
<
telerik:RadButton
ID
=
"RadButton1"
runat
=
"server"
Width
=
"20"
Height
=
"20"
ToolTip
=
"Settings"
OnClientClicking
=
"openRadWindowSettings"
AutoPostBack
=
"false"
Text
=
"Open"
NavigateUrl
=
"Default2.aspx"
>
</
telerik:RadButton
>
JavaScript:
function
openRadWindowSettings(sender, args) {
window.location = sender.get_navigateUrl();
args.set_cancel(
true
);
}
Thanks,
Shinu.