Hi there
I'm unable to close a RadWindow in FireFox using an HTML image with onclick="Close();". It works fine in all other browsers.
This is the javascript that I have on the page that's opening in the RadWindow:
As I said, this works fine in all browsers except for FireFox. I get a java error GetRadWindow() is undefined when I click the Close button in FireFox.
Just for information sake, this is my RadWindowManager code on the content page:
I invoke the RadWindow from the content page like this:
I've tried everything, hope someone here can help! I'm using 2010 Q3 controls for ASP.NET Ajax in VB.NET.
I'm unable to close a RadWindow in FireFox using an HTML image with onclick="Close();". It works fine in all other browsers.
This is the javascript that I have on the page that's opening in the RadWindow:
<script language=
"javascript"
type=
"text/javascript"
>
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
Close() {
GetRadWindow().Close();
}
</script>
I close the Radwindow using this code:
<
img
alt
=
"Close Window"
src
=
"closebutton.jpg"
onclick
=
"javascript:Close();"
style
=
"cursor: pointer"
/>
As I said, this works fine in all browsers except for FireFox. I get a java error GetRadWindow() is undefined when I click the Close button in FireFox.
Just for information sake, this is my RadWindowManager code on the content page:
<
telerik:RadWindowManager
Width
=
"620px"
Height
=
"495px"
ReloadOnShow
=
"true"
ShowContentDuringLoad
=
"false"
AutoSize
=
"true"
VisibleTitlebar
=
"False"
VisibleStatusbar
=
"false"
Modal
=
"true"
ID
=
"RadWindowManager1"
runat
=
"server"
>
</
telerik:RadWindowManager
>
I invoke the RadWindow from the content page like this:
<
img
src
=
"site/interface/quote.jpg"
style
=
"cursor: pointer"
onclick="radopen('quote.aspx?p=<%=productname%>');" />
I've tried everything, hope someone here can help! I'm using 2010 Q3 controls for ASP.NET Ajax in VB.NET.