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.
  • 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
                          • T Todd Smith

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

                            Todd Smith

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

                            How is this an IE7 problem? If you're using FF with firebug and there is a js bug it's gonna pop a message and stop execution just like ie7 does. I haven't messed with chrome yet but I assume its script debugger (if it has one) will do the same thing. MAC

                            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

                              F Offline
                              F Offline
                              fred_
                              wrote on last edited by
                              #30

                              Michael A. Cochran wrote:

                              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.

                              I too had a few days of google being unusable ( turns out keyboard worked but the mouseover caused most of the errors). They do have a fix in the google help. It was caused by a registry entry, rumored to have been set in a early version of a MS Windows Update relating to searching in IE. :omg: X|

                              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
                                
                                F Offline
                                F Offline
                                fred_
                                wrote on last edited by
                                #31

                                I was getting "google" is undefined

                                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

                                  D Offline
                                  D Offline
                                  David Brien
                                  wrote on last edited by
                                  #32

                                  Use Firefox with Firebug instead of IE. -dave-

                                  J 1 Reply Last reply
                                  0
                                  • D David Brien

                                    Use Firefox with Firebug instead of IE. -dave-

                                    J Offline
                                    J Offline
                                    Joe Simes
                                    wrote on last edited by
                                    #33

                                    I find that a lot of the ad/script/flash blocking plugins in FF cause js errors. There are little bits of script on the page that reference objects that might not exist because certain plugins block/remove them from the DOM. :sigh:

                                    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