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. The Lounge
  3. javascript bugs bug me.

javascript bugs bug me.

Scheduled Pinned Locked Moved The Lounge
javascripthelpquestionannouncement
33 Posts 15 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.
  • M Michael A Cochran

    Am I the only guy who wishes some of our fellow web coders would be a little more persistent about eliminating their javascript bugs on the popular websites. You know, the ones that pop up three or four popup dialogs per page refresh when you have debugging enabled in your browser? As a developer, I always have javascript debugging enabled in my browser. Surely I'm not the only one. Those silly little scripting error popups get irritating after a while - especially when you open several tabs at once like I always do when I read the Code Project Daily News articles. Now, I know most of these errors are from the ads and because I have my popup blocker turned on but - gee whiz kids - can't we get those guys to get rid of their js bugs? Speaking of javascript bugs, am I also the only one to have had Google rendered completely unusable because of javascript errors? I can't click a single link in the search results. MAC

    T Offline
    T Offline
    ToddHileHoffer
    wrote on last edited by
    #9

    As an asp.net programmer, I find the javascript bugs very, very annoying. Our payroll application made by JDE that have to use to fill out my time sheet. I have to keep clicking no to debug. I always fix my javascript bugs, but honestly I try to write as little JS as possible. I just write simple functions here and there. 99% of the javascript I use was written by someone else or is part of a framework (Telerik, AJAX, etc...). It is damn annoying how many websites do not clean up their javascript. It is just laziness.

    I didn't get any requirements for the signature

    1 Reply Last reply
    0
    • M Michael A Cochran

      Pretty sure it's google code. if(window.google)window.google.report=function(d,c){var a="";{if(window.google.pt){a+="&srt="+window.google.pt;delete window.google.pt}if(window.external&&window.external.tran)a+="&tran="+window.external.tran}{var e=document.getElementById("csi");if(e.value)return;e.value=1}var b=d.t,f=b.start;delete b.start;var g=[];for(var h in b)f&&g.push(h+"."+(b[h]-f));if(c)for(var i in c)a+="&"+i+"="+c[i];(new Image).src=["/csi?v=3","&s=GWS&action=",d.name,a,"&rt=",g.join(",")].join("")};google.timers.load.t.xjs=(new Date).getTime();google.timers.load.t.ol&&google.report(google.timers.load,{ei:google.kEI,e:google.kEXPI}); The "window.external.tran" evaluates to null in a script debugger. It's clearly buried in a google code snippet. It might be caused by something I've turned off for security or privacy reasons (for example) but still, a simple null check would eliminate the error, avoiding the error popup and allowing the link to work. Ooo, wait... Still getting popup errors but the search result links look to be working now. Maybe the links were broken as a side effect of the "forward slash glitch". MAC

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #10

      Michael A. Cochran wrote:

      The "window.external.tran" evaluates to null in a script debugger.

      There's a check before it is accessed:

      if( window.external && window.external.tran )
                  a += "&tran=" + window.external.tran

      So it really shouldn't be throwing an error. FWIW, here's your code snippet pretty-printed:

      if(window.google)
      window.google.report=function(d,c)
      {
      var a="";
      {
      if(window.google.pt)
      {
      a += "&srt=" + window.google.pt;
      delete window.google.pt
      }
      if( window.external && window.external.tran )
      a += "&tran=" + window.external.tran
      }

        {
           var e= document.getElementById("csi");
           if(e.value)
              return
      
      M J F 3 Replies Last reply
      0
      • E Ennis Ray Lynch Jr

        I think a lot of the bugs are causes by different implementations of js. It is such a pain to eliminate all errors and warnings in all browsers.

        Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
        If you don't ask questions the answers won't stand in your way.
        Most of this sig is for Google, not ego.

        M Offline
        M Offline
        Michael A Cochran
        wrote on last edited by
        #11

        Yeah, probably. Web development is surely one of the more mentally painful and frustrating fields of computer science. It can sometimes take days to do something in a web environment that would take 5 minutes in a WinForm environment. Try doing something like grab handles on an asp.net web page that uses webparts and making it layout correctly on even just the big three browsers (IE, FF, Safari) for example. Ouch. MAC

        J 1 Reply Last reply
        0
        • S Shog9 0

          Michael A. Cochran wrote:

          The "window.external.tran" evaluates to null in a script debugger.

          There's a check before it is accessed:

          if( window.external && window.external.tran )
                      a += "&tran=" + window.external.tran

          So it really shouldn't be throwing an error. FWIW, here's your code snippet pretty-printed:

          if(window.google)
          window.google.report=function(d,c)
          {
          var a="";
          {
          if(window.google.pt)
          {
          a += "&srt=" + window.google.pt;
          delete window.google.pt
          }
          if( window.external && window.external.tran )
          a += "&tran=" + window.external.tran
          }

            {
               var e= document.getElementById("csi");
               if(e.value)
                  return
          
          M Offline
          M Offline
          Michael A Cochran
          wrote on last edited by
          #12

          But it is. And it's the check that fails. Technically, (and I wasn't trying to fix their code for them) it isn't a null reference exception. The error is "Element not found". Still, no doubt something that could be trapped and properly handled. MAC

          S 1 Reply Last reply
          0
          • M Michael A Cochran

            But it is. And it's the check that fails. Technically, (and I wasn't trying to fix their code for them) it isn't a null reference exception. The error is "Element not found". Still, no doubt something that could be trapped and properly handled. MAC

            S Offline
            S Offline
            Shog9 0
            wrote on last edited by
            #13

            Michael A. Cochran wrote:

            Still, no doubt something that could be trapped and properly handled.

            Hard to say... window.external is (Internet Explorer's) means of exposing a host IDispatch[Ex] interface outside of the DOM to scripts. I have no idea what sort of extension provides tran, but if it isn't there (or is broken... or has been replaced with something else... and that something else is broken...) then all bets are off - it could be valid for the check and invalid for the access.

            M 1 Reply Last reply
            0
            • S Steve Westbrook

              For quite a while, slashdot would greet me with precisely three js errors every time I loaded it. They seem to have fixed it now, but I do wonder how many developers find the easiest way to fix javascript bugs is to turn off error notification. I mean, it's a site about technology, primarily computer related, and I get no love. Y'all.

              M Offline
              M Offline
              Michael A Cochran
              wrote on last edited by
              #14

              Yeah. What set me off this evening is both CIO.com and zdnet.com throw several errors each. These two sites are often referenced in the Code Project daily news email. When I read this email, I always just click all the links I want at once, opening them in several tabs. With the script errors, you literally have to flip back and forth between the tabs, finding and clearing the error popups. It's a pain but I've been putting up with it for months. Guess I must have had a bad day today to make me say something about it. :-D

              J 1 Reply Last reply
              0
              • M Michael A Cochran

                Yeah, probably. Web development is surely one of the more mentally painful and frustrating fields of computer science. It can sometimes take days to do something in a web environment that would take 5 minutes in a WinForm environment. Try doing something like grab handles on an asp.net web page that uses webparts and making it layout correctly on even just the big three browsers (IE, FF, Safari) for example. Ouch. MAC

                J Offline
                J Offline
                Jim Crafton
                wrote on last edited by
                #15

                I'm pretty sure "Web development" and "computer science" in the same sentence is an oxymoron[^]!

                ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! VCF Blog Just Say No to Web 2 Point Oh

                M 1 Reply Last reply
                0
                • S Shog9 0

                  Michael A. Cochran wrote:

                  Still, no doubt something that could be trapped and properly handled.

                  Hard to say... window.external is (Internet Explorer's) means of exposing a host IDispatch[Ex] interface outside of the DOM to scripts. I have no idea what sort of extension provides tran, but if it isn't there (or is broken... or has been replaced with something else... and that something else is broken...) then all bets are off - it could be valid for the check and invalid for the access.

                  M Offline
                  M Offline
                  Michael A Cochran
                  wrote on last edited by
                  #16

                  I don't know what trans is either. But try...catch would probably catch it. Or they should find some other more reliable way of doing whatever it's doing. And this just started happening a few days ago. So this is fresh functionality. Google worked fine for me before so do I need whatever this is? Seems not. :~ So why not spend a little time and make sure the code works without irritating little popups? There's gotta be something they could do.

                  S 1 Reply Last reply
                  0
                  • S Shog9 0

                    Michael A. Cochran wrote:

                    The "window.external.tran" evaluates to null in a script debugger.

                    There's a check before it is accessed:

                    if( window.external && window.external.tran )
                                a += "&tran=" + window.external.tran

                    So it really shouldn't be throwing an error. FWIW, here's your code snippet pretty-printed:

                    if(window.google)
                    window.google.report=function(d,c)
                    {
                    var a="";
                    {
                    if(window.google.pt)
                    {
                    a += "&srt=" + window.google.pt;
                    delete window.google.pt
                    }
                    if( window.external && window.external.tran )
                    a += "&tran=" + window.external.tran
                    }

                      {
                         var e= document.getElementById("csi");
                         if(e.value)
                            return
                    
                    J Offline
                    J Offline
                    Jim Crafton
                    wrote on last edited by
                    #17

                    And people bitch about STL code being unreadable.

                    ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! VCF Blog Just Say No to Web 2 Point Oh

                    S 1 Reply Last reply
                    0
                    • M Michael A Cochran

                      Yeah. What set me off this evening is both CIO.com and zdnet.com throw several errors each. These two sites are often referenced in the Code Project daily news email. When I read this email, I always just click all the links I want at once, opening them in several tabs. With the script errors, you literally have to flip back and forth between the tabs, finding and clearing the error popups. It's a pain but I've been putting up with it for months. Guess I must have had a bad day today to make me say something about it. :-D

                      J Offline
                      J Offline
                      Jim Crafton
                      wrote on last edited by
                      #18

                      You can solve part of your problem by skipping CIO.com and zdnet.com altogether. You'll get more informed news at uncov.com and theonion.com.

                      ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! VCF Blog Just Say No to Web 2 Point Oh

                      M 1 Reply Last reply
                      0
                      • M Michael A Cochran

                        I don't know what trans is either. But try...catch would probably catch it. Or they should find some other more reliable way of doing whatever it's doing. And this just started happening a few days ago. So this is fresh functionality. Google worked fine for me before so do I need whatever this is? Seems not. :~ So why not spend a little time and make sure the code works without irritating little popups? There's gotta be something they could do.

                        S Offline
                        S Offline
                        Shog9 0
                        wrote on last edited by
                        #19

                        Michael A. Cochran wrote:

                        So why not spend a little time and make sure the code works without irritating little popups?

                        Beats me. Maybe it's working for them?

                        M 1 Reply Last reply
                        0
                        • M Michael A Cochran

                          :-D Yeah. We all use that one, don't we. :laugh:

                          S Offline
                          S Offline
                          Shog9 0
                          wrote on last edited by
                          #20

                          ;)

                          1 Reply Last reply
                          0
                          • S Shog9 0

                            Michael A. Cochran wrote:

                            So why not spend a little time and make sure the code works without irritating little popups?

                            Beats me. Maybe it's working for them?

                            M Offline
                            M Offline
                            Michael A Cochran
                            wrote on last edited by
                            #21

                            :-D Yeah. We all use that one, don't we. :laugh:

                            S 1 Reply Last reply
                            0
                            • J Jim Crafton

                              And people bitch about STL code being unreadable.

                              ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! VCF Blog Just Say No to Web 2 Point Oh

                              S Offline
                              S Offline
                              Shog9 0
                              wrote on last edited by
                              #22

                              To be fair, that code looked like it had been minified (variable names shortened, whitespace removed) and i didn't do anything beyond adding whitespace to make it readable. But yeah, there's plenty of opportunity for dense code in JS... :)

                              1 Reply Last reply
                              0
                              • M Michael A Cochran

                                Nope. IE7. MAC

                                J Offline
                                J Offline
                                JimmyRopes
                                wrote on last edited by
                                #23

                                Michael A. Cochran wrote:

                                Nope. IE7.

                                Therein lies your problem. :~

                                Simply Elegant Designs JimmyRopes Designs
                                Think inside the box! ProActive Secure Systems
                                I'm on-line therefore I am. JimmyRopes

                                1 Reply Last reply
                                0
                                • J Jim Crafton

                                  I'm pretty sure "Web development" and "computer science" in the same sentence is an oxymoron[^]!

                                  ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! VCF Blog Just Say No to Web 2 Point Oh

                                  M Offline
                                  M Offline
                                  Michael A Cochran
                                  wrote on last edited by
                                  #24

                                  :laugh: It sure feels like it some days. Do web development for a while and you begin to long for the good old days when we did nothing but C and assembler programming. I once wrote a chess program for a 3270 using assembler. That was much more fun than trying to get web pages to layout correctly.

                                  1 Reply Last reply
                                  0
                                  • J Jim Crafton

                                    You can solve part of your problem by skipping CIO.com and zdnet.com altogether. You'll get more informed news at uncov.com and theonion.com.

                                    ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! VCF Blog Just Say No to Web 2 Point Oh

                                    M Offline
                                    M Offline
                                    Michael A Cochran
                                    wrote on last edited by
                                    #25

                                    :)

                                    1 Reply Last reply
                                    0
                                    • M Michael A Cochran

                                      Am I the only guy who wishes some of our fellow web coders would be a little more persistent about eliminating their javascript bugs on the popular websites. You know, the ones that pop up three or four popup dialogs per page refresh when you have debugging enabled in your browser? As a developer, I always have javascript debugging enabled in my browser. Surely I'm not the only one. Those silly little scripting error popups get irritating after a while - especially when you open several tabs at once like I always do when I read the Code Project Daily News articles. Now, I know most of these errors are from the ads and because I have my popup blocker turned on but - gee whiz kids - can't we get those guys to get rid of their js bugs? Speaking of javascript bugs, am I also the only one to have had Google rendered completely unusable because of javascript errors? I can't click a single link in the search results. MAC

                                      J Offline
                                      J Offline
                                      JoseMenendez
                                      wrote on last edited by
                                      #26

                                      I really think that they should come up with something universal, like an Uniscript or something. It would really increase the happiness among us. :wtf:

                                      Jm www.menendezpoo.com

                                      1 Reply Last reply
                                      0
                                      • M Michael A Cochran

                                        Am I the only guy who wishes some of our fellow web coders would be a little more persistent about eliminating their javascript bugs on the popular websites. You know, the ones that pop up three or four popup dialogs per page refresh when you have debugging enabled in your browser? As a developer, I always have javascript debugging enabled in my browser. Surely I'm not the only one. Those silly little scripting error popups get irritating after a while - especially when you open several tabs at once like I always do when I read the Code Project Daily News articles. Now, I know most of these errors are from the ads and because I have my popup blocker turned on but - gee whiz kids - can't we get those guys to get rid of their js bugs? Speaking of javascript bugs, am I also the only one to have had Google rendered completely unusable because of javascript errors? I can't click a single link in the search results. MAC

                                        T Offline
                                        T Offline
                                        Todd Smith
                                        wrote on last edited by
                                        #27

                                        That's the reason I switched to Chrome. IE7- is just stupid in this regard.

                                        Todd Smith

                                        M 1 Reply Last reply
                                        0
                                        • C Christian Graus

                                          Are you using Netscape 1.0 ?

                                          Christian Graus Driven to the arms of OSX by Vista.

                                          M Offline
                                          M Offline
                                          Member 96
                                          wrote on last edited by
                                          #28

                                          :rolleyes: He's entirely right. I have debugging enabled in my development virtual machine in various browsers and there are almost no sites I go to with it that don't give javascript errors all over the place.


                                          "It's so simple to be wise. Just think of something stupid to say and then don't say it." -Sam Levenson

                                          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