This is a migrated thread and some comments may be shown as answers.

add_close in radopen window does not work for Firefox

1 Answer 49 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
techie
Top achievements
Rank 1
techie asked on 18 Mar 2010, 01:47 AM

Hi, I have the below code in Javascript & its open popup window using radopen

 

<

 

 

 

script language="Javascript">

 

 

 

 

 

var

 

radOpenWindow = window.radopen("popupwindow.aspx", "<%=preview_popup.ClientID%>");

 

radOpenWindow.add_close(OnClientClose);

radOpenWindow.show();

 

<

 

 

 

script language="Javascript">

the above code works on IE. But when i try on Firefox its load the page and close the window automatically. i.e) close while loading the page.

can you please advice solution for this issue. I want to execute some code when i close rad open window.

Thanks,
Senthil Kumar 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 19 Mar 2010, 03:44 PM
Hello,

You should use the type property instead of language - language is IE specific property.


<script type="text/javascript">
    var radOpenWindow = window.radopen("popupwindow.aspx", "<%=preview_popup.ClientID%>");
    radOpenWindow.add_close(OnClientClose);
    radOpenWindow.show();
</script>

I don't know how do you call this function, but note that you need to cancel the postback as well. For example if the function that you call is called openWin(), you should set the OnClientClick propertly like this:
OnClientClick="openWin(); return false;"


Sincerely yours,
Georgi Tunev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
techie
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or