R
R
Ruslan2011-08-29 10:06:01
Microsoft
Ruslan, 2011-08-29 10:06:01

Strange Firefox looping with Microsoft AJAX scripts

Hello!
Found very strange behavior in Firefox 6.0 when loading a simple page that has links to two scripts:
MicrosoftAjax.js
and
MicrosoftMvcAjax.js

and the body consists of one line (although there may be more).

If you open this page in normal mode ( http://www.ufamama.ru/test2.htm ) then everything is fine, but if you open it with a relative link ( http://www.ufamama.ru/test2.htm#xyz ) and after loading, press F5, then the page starts to reload many times, and Firefox itself eats up RAM.

If you do not specify the MicrosoftAjax.js script in the sources, then this effect does not occur.
I'm scratching my head, because of what this behavior is and how to overcome it and at the same time leave the libraries. Maybe someone has an answer.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sainnr, 2011-08-29
@sainnr

I think the point is in this code snippet MicrosoftAjax.js: And by the way, it seems to work only in the 6th version of FF.
Sys._Application.prototype.get_stateString=function(){
var a=null;
if(Sys.Browser.agent===Sys.Browser.Firefox){
var c=window.location.href, b=c.indexOf("#");
if(b!==-1)a=c.substring(b+1);
else a="";
return a
} else a=window.location.hash;
if(a.length>0&&a.charAt(0)==="#")
a=a.substring(1);
return a
};

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question