Archive for the ‘FireFox’ Category

Sys.WebForms.PageRequestManagerServerErrorException in FireFox with MSFT Ajax

Thursday, December 11th, 2008

If you encounter this error while navigating away from an AJAX-enabled page with a non-IE browser, you can silence it with the following JavaScript:

if (!document.all) //non-ie
{
window.onbeforeunload = function() {
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(ignoreOnEndRequest);
}
}

function ignoreOnEndRequest(sender, e) {
err = e.get_error();
if (err) {
if (err.name == "Sys.WebForms.PageRequestManagerServerErrorException") {
e.set_errorHandled(true);
}
}
}

Hope it works for you!


Fix FireFox SLOWdown on Vista while Debugging localhost

Sunday, October 28th, 2007

If you use FireFox to debug on Windows Vista, you most likely have noticed how ridiculously slow it is rendering localhost requests versus Internet Explorer.  No, this isn’t a conspiracy, just an issue with IPv6, FireFox, and Windows Vista.

To fix this issue, do the following:

1) Open up about:config in your FireFox browser
2) Filter or scroll down to network.dns.disableIPv6 and set this value to true
3) Restart FireFox and you should be good to go!

FireFox caches JavaScript state

Thursday, September 27th, 2007

Firefox uses in memory caching for JavaScript and can cause strange errors in your MSFT ASP.NET Ajax applications.

Try adding this to your load event to prevent those errors:

if (Request.Browser.MSDomVersion.Major == 0) // Non IE Browser?)
{
Response.Cache.SetNoStore(); // No client side cashing for non IE browsers
}