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. Other Discussions
  3. The Weird and The Wonderful
  4. I don't got time for no stinking opera!

I don't got time for no stinking opera!

Scheduled Pinned Locked Moved The Weird and The Wonderful
javascriptrubydebuggingquestion
12 Posts 7 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.
  • enhzflepE Offline
    enhzflepE Offline
    enhzflep
    wrote on last edited by
    #1

    Just reading through some javascript the other day when I found this gem.

    // Gets cursor position inside in node element.
    function GetCursorPosition(node)
    {
    // I have no time for Opera. What a nightmare to debug
    if (navigator.userAgent.toLowerCase().indexOf("opera") != -1) return 0;

    Would now be a bad time to say that I found it here at CP? :laugh: +5 to the first person to correctly identify where!

    B _ L 3 Replies Last reply
    0
    • enhzflepE enhzflep

      Just reading through some javascript the other day when I found this gem.

      // Gets cursor position inside in node element.
      function GetCursorPosition(node)
      {
      // I have no time for Opera. What a nightmare to debug
      if (navigator.userAgent.toLowerCase().indexOf("opera") != -1) return 0;

      Would now be a bad time to say that I found it here at CP? :laugh: +5 to the first person to correctly identify where!

      B Offline
      B Offline
      Brisingr Aerowing
      wrote on last edited by
      #2

      enhzflep wrote:

      found it here at CP

      Well, someone doesn't like Opera! I wonder when this will be solved. (Or if)

      Bill Gates is a very rich man today... and do you want to know why? The answer is one word: versions. Dave Barry Read more at [BrainyQuote](http://www.brainyquote.com/quotes/topics topic_technology.html#yAfSEbrfumitrteO.99)[^]

      1 Reply Last reply
      0
      • enhzflepE enhzflep

        Just reading through some javascript the other day when I found this gem.

        // Gets cursor position inside in node element.
        function GetCursorPosition(node)
        {
        // I have no time for Opera. What a nightmare to debug
        if (navigator.userAgent.toLowerCase().indexOf("opera") != -1) return 0;

        Would now be a bad time to say that I found it here at CP? :laugh: +5 to the first person to correctly identify where!

        _ Offline
        _ Offline
        _Amy
        wrote on last edited by
        #3

        Are you talking about this[^]?

        Read the article "Table Valued Parameters". --Amit

        enhzflepE 1 Reply Last reply
        0
        • _ _Amy

          Are you talking about this[^]?

          Read the article "Table Valued Parameters". --Amit

          enhzflepE Offline
          enhzflepE Offline
          enhzflep
          wrote on last edited by
          #4

          Nope, sorry. hint: its neither an article nor a user submitted post...

          1 Reply Last reply
          0
          • enhzflepE enhzflep

            Just reading through some javascript the other day when I found this gem.

            // Gets cursor position inside in node element.
            function GetCursorPosition(node)
            {
            // I have no time for Opera. What a nightmare to debug
            if (navigator.userAgent.toLowerCase().indexOf("opera") != -1) return 0;

            Would now be a bad time to say that I found it here at CP? :laugh: +5 to the first person to correctly identify where!

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            YOu found it right here[^]

            At least artificial intelligence already is superior to natural stupidity

            enhzflepE 1 Reply Last reply
            0
            • L Lost User

              YOu found it right here[^]

              At least artificial intelligence already is superior to natural stupidity

              enhzflepE Offline
              enhzflepE Offline
              enhzflep
              wrote on last edited by
              #6

              CDP1802 wrote:

              I found it right here[^] I don't know where you found it :sigh:

              Nope, ftfy too. You've both had it in your browsers today...

              J 1 Reply Last reply
              0
              • enhzflepE enhzflep

                CDP1802 wrote:

                I found it right here[^] I don't know where you found it :sigh:

                Nope, ftfy too. You've both had it in your browsers today...

                J Offline
                J Offline
                Jochen Arndt
                wrote on last edited by
                #7

                enhzflep wrote:

                You've both had it in your browsers today...

                Then it must be on the 'Reply to Message' page. ... Yes, I found it.

                A enhzflepE 2 Replies Last reply
                0
                • J Jochen Arndt

                  enhzflep wrote:

                  You've both had it in your browsers today...

                  Then it must be on the 'Reply to Message' page. ... Yes, I found it.

                  A Offline
                  A Offline
                  Andrei Straut
                  wrote on last edited by
                  #8

                  Yep, tracks cursor position inside the textarea where i'm writing now (hm, i'm feeling watched). At first glance, seems to be responsible for checking if cursor position is inside a tag when copying and pasting code. I may be wrong, but this is what I got in 1 min or so ;P EDIT: Now, thanks to Jochen I actually took his suggestion, so the 5 should go to him

                  Full-fledged Java/.NET lover, full-fledged PHP hater. Full-fledged Google/Microsoft lover, full-fledged Apple hater. Full-fledged Skype lover, full-fledged YM hater.

                  enhzflepE C 2 Replies Last reply
                  0
                  • J Jochen Arndt

                    enhzflep wrote:

                    You've both had it in your browsers today...

                    Then it must be on the 'Reply to Message' page. ... Yes, I found it.

                    enhzflepE Offline
                    enhzflepE Offline
                    enhzflep
                    wrote on last edited by
                    #9

                    That's close enough for me. It's line 1,618 of Edit.aspx

                    1 Reply Last reply
                    0
                    • A Andrei Straut

                      Yep, tracks cursor position inside the textarea where i'm writing now (hm, i'm feeling watched). At first glance, seems to be responsible for checking if cursor position is inside a tag when copying and pasting code. I may be wrong, but this is what I got in 1 min or so ;P EDIT: Now, thanks to Jochen I actually took his suggestion, so the 5 should go to him

                      Full-fledged Java/.NET lover, full-fledged PHP hater. Full-fledged Google/Microsoft lover, full-fledged Apple hater. Full-fledged Skype lover, full-fledged YM hater.

                      enhzflepE Offline
                      enhzflepE Offline
                      enhzflep
                      wrote on last edited by
                      #10

                      That's close enough for me. It's line 1,618 of Edit.aspx

                      1 Reply Last reply
                      0
                      • A Andrei Straut

                        Yep, tracks cursor position inside the textarea where i'm writing now (hm, i'm feeling watched). At first glance, seems to be responsible for checking if cursor position is inside a tag when copying and pasting code. I may be wrong, but this is what I got in 1 min or so ;P EDIT: Now, thanks to Jochen I actually took his suggestion, so the 5 should go to him

                        Full-fledged Java/.NET lover, full-fledged PHP hater. Full-fledged Google/Microsoft lover, full-fledged Apple hater. Full-fledged Skype lover, full-fledged YM hater.

                        C Offline
                        C Offline
                        Chris Maunder
                        wrote on last edited by
                        #11

                        Yep - that's exactly what it does. With the evolution of "security" in browsers, handling Paste events has become more and more painful, so much so that the only way I can reliably handle it is to watch every elephanting keystroke in order to work out when a Paste event has happened and what was Pasted. Except that Opera totally screws it up. I gave up. You should see the server-side comments... :-O

                        cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

                        B 1 Reply Last reply
                        0
                        • C Chris Maunder

                          Yep - that's exactly what it does. With the evolution of "security" in browsers, handling Paste events has become more and more painful, so much so that the only way I can reliably handle it is to watch every elephanting keystroke in order to work out when a Paste event has happened and what was Pasted. Except that Opera totally screws it up. I gave up. You should see the server-side comments... :-O

                          cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

                          B Offline
                          B Offline
                          Brisingr Aerowing
                          wrote on last edited by
                          #12

                          What hasn't Opera screwed up?

                          Bill Gates is a very rich man today... and do you want to know why? The answer is one word: versions. Dave Barry Read more at [BrainyQuote](http://www.brainyquote.com/quotes/topics topic_technology.html#yAfSEbrfumitrteO.99)[^]

                          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