.NET Framework Bookmark and Share   
 index > JScript for the .NET Framework > Disable the confirmation message while refreshing in Firefox browser
 

Disable the confirmation message while refreshing in Firefox browser

Hi,

I am facing a problem while making the Ajax enabledasp.net 2.0 web application compatible with Firefox browser.

I am opening a modal popup window and when a value is selected in the pop up window, the pop up should close and the selected valueshould be reflected in the parent form and I take the value from the session in the parent form.

This works fine with IE 7 and previous versions . But in Firefox , the parent window doesn't refresh.

As a work around I am calling a Javascript method to refresh the parent window while closing the pop up.

The firefox browser displays a confirmation message to reload the data. Can any one give me a solution to disable the confirmation message that is getting displayed?

Regards

Deepa

Deepa Ganesh

Hi,

Thanks for the reply

There is solution for disabling the refreshconfirmation message in Firefox

On the parent page put a JS function :

function RefreshPage()

{

window.document.forms[0].submit();

}

Call this function in the Pop up window before closing it

window.opener.RefreshPage(); window.close();

This solves the problem .

Regards

Deepa

Deepa Ganesh

Hi Deepa,

For better discussions and suggestions about AJAX enabled website, try to post your questions to ASP.NET forums - http://forums.asp.net/1007.aspx

Regards,

Ji Cheng Wang - MSFT

Hi,

Thanks for the reply

There is solution for disabling the refreshconfirmation message in Firefox

On the parent page put a JS function :

function RefreshPage()

{

window.document.forms[0].submit();

}

Call this function in the Pop up window before closing it

window.opener.RefreshPage(); window.close();

This solves the problem .

Regards

Deepa

Deepa Ganesh
Hi Deepa,

Am facing problems in refreshing the parent window while making the Ajax enabled asp.net 2.0 web app, am using IE. In the popup window the opener is shown null.

I believe you have already implemented this functionality and you are facing problems in a different area. Please help me with the code on how to implement parent window refresh in ajax enabled web page.

Thanks in advance.

Regards,
Amarnath
Amarnath Manoharan

You can use google to search for other answers

Custom Search

More Threads

• concatenante javascript function into a string
• refresh problem
• Debugging ASP & Jscript
• Httpcontent
• Validation Select Button Issue
• Security Advantages of the .NET Framework
• Ajax Sys.WebForms.PageRequestManagerServerErrorExecption Problems
• button once click? [Resolved]
• JScript Error in Vista
• MAC Address validation