A Tale of Three Browsers
-
"It was the best of times; it was the worst of times. . . ." There isn't enough here for an article, but I found this somewhat interesting. I had built a little routine to create an array
function buildArray()
{
var a = buildArray.arguments;
for ( var i=0; iand I called it with a line of code that suddenly stopped working after I had made some (what I thought were minor) edits. After edits, it looked like this:
var urls1 = new buildArray("", "Officers.aspx", "NPCs.aspx", "Weapons.aspx", "Defenses.aspx" "Cargos.aspx","Mercs.aspx","Player.aspx","Boats.aspx","Ammo.aspx");
I was using Chrome as my test browser at the moment and when I tried to display the page that contained the code, the browser hung, displaying nothing.
No Huhu. Chrome's in beta so I switched to Firefox. It loaded the page but lost all javascript functionality, which told me that my problem was probably in the code I show above. However, Firebug could not find an error to report. So I switched to IE and when I loaded the page, it immediately identified the problem code and gave a line number which, of course, was about 5 off but whatthehell, IE has done that since Moses was clean-shaven. Interestingly, when I attempted to ignore the error, the page crashed because there were errors in the viewstate propertybag.
Of course, once I restored the missing comma, the page worked perfectly.
Jon
Rob Graham wrote:
100% subsidies are very popular among the 50% of the population that pays no income tax...
-
"It was the best of times; it was the worst of times. . . ." There isn't enough here for an article, but I found this somewhat interesting. I had built a little routine to create an array
function buildArray()
{
var a = buildArray.arguments;
for ( var i=0; iand I called it with a line of code that suddenly stopped working after I had made some (what I thought were minor) edits. After edits, it looked like this:
var urls1 = new buildArray("", "Officers.aspx", "NPCs.aspx", "Weapons.aspx", "Defenses.aspx" "Cargos.aspx","Mercs.aspx","Player.aspx","Boats.aspx","Ammo.aspx");
I was using Chrome as my test browser at the moment and when I tried to display the page that contained the code, the browser hung, displaying nothing.
No Huhu. Chrome's in beta so I switched to Firefox. It loaded the page but lost all javascript functionality, which told me that my problem was probably in the code I show above. However, Firebug could not find an error to report. So I switched to IE and when I loaded the page, it immediately identified the problem code and gave a line number which, of course, was about 5 off but whatthehell, IE has done that since Moses was clean-shaven. Interestingly, when I attempted to ignore the error, the page crashed because there were errors in the viewstate propertybag.
Of course, once I restored the missing comma, the page worked perfectly.
Jon
Rob Graham wrote:
100% subsidies are very popular among the 50% of the population that pays no income tax...
:laugh: :laugh:
"Defenses.aspx" "Cargos.aspx"
This is all the problem you did... ;) Actually while working with those I also found few problems. For instance, At a certain size of JS file, I found IE(both IE6 and IE7) throws an error "Syntax Error" which i cured just by putting new lines in code ;P ;P ... :cool:Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript