Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. A Tale of Three Browsers

A Tale of Three Browsers

Scheduled Pinned Locked Moved Web Development
helpjavascriptcsswcfcom
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Oakman
    wrote on last edited by
    #1

    "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; i

    and 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...

    Soap Box 1.0: the first, the original, reborn troll-less

    A 1 Reply Last reply
    0
    • O Oakman

      "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; i

      and 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...

      Soap Box 1.0: the first, the original, reborn troll-less

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      :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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups