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. Firefox codeproject toolbar

Firefox codeproject toolbar

Scheduled Pinned Locked Moved The Lounge
htmldata-structureshelp
18 Posts 13 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.
  • W wrykyn

    Michael Dunn wrote: Chris has said numerous times that Mozilla doesn't implement the one object he needs (the one that returns the currently-selected text) to do text formatting. I'm glad you said that. That needed mentioning :) "One of the Georges," said Psmith, "I forget which, once said that a certain number of hours' sleep a day--I cannot recall for the moment how many--made a man something, which for the time being has slipped my memory."

    R Offline
    R Offline
    Rocky Moore
    wrote on last edited by
    #9

    That is one of the problems with the Mozilla/Geko team is that they are so closed minded to "standards only or die", that they make it hard on everyone else. Reminds me of Apple who claims to be the usability expert while they cannot see the benefit of a right mouse button or scroll wheel, they just stick in their old rut, even if it is wrong. Standards are fine, but who cares if the usabilty is not there. Rocky <>< www.HintsAndTips.com - Now with "Recommendation" postings www.MyQuickPoll.com - Now with Recent Poll List

    W A 2 Replies Last reply
    0
    • R Rocky Moore

      That is one of the problems with the Mozilla/Geko team is that they are so closed minded to "standards only or die", that they make it hard on everyone else. Reminds me of Apple who claims to be the usability expert while they cannot see the benefit of a right mouse button or scroll wheel, they just stick in their old rut, even if it is wrong. Standards are fine, but who cares if the usabilty is not there. Rocky <>< www.HintsAndTips.com - Now with "Recommendation" postings www.MyQuickPoll.com - Now with Recent Poll List

      W Offline
      W Offline
      wrykyn
      wrote on last edited by
      #10

      Yeah. Plus as someone mentioned its a moving target. I mean who the hell wants to develop targeting something that's not even fixed. In all fairness its not like they are breaking applications left and right but a little more help from them would be welcome. "One of the Georges," said Psmith, "I forget which, once said that a certain number of hours' sleep a day--I cannot recall for the moment how many--made a man something, which for the time being has slipped my memory."

      M 1 Reply Last reply
      0
      • W wrykyn

        Yeah. Plus as someone mentioned its a moving target. I mean who the hell wants to develop targeting something that's not even fixed. In all fairness its not like they are breaking applications left and right but a little more help from them would be welcome. "One of the Georges," said Psmith, "I forget which, once said that a certain number of hours' sleep a day--I cannot recall for the moment how many--made a man something, which for the time being has slipped my memory."

        M Offline
        M Offline
        Michael P Butler
        wrote on last edited by
        #11

        Ramanan Sivan wrote: Plus as someone mentioned its a moving target. I mean who the hell wants to develop targeting something that's not even fixed. Isn't that what all programmers do. :-D Our customer requirements are moving targets, our development tools keep changing, not to mention all the API's that are created and forgotten about. Michael CP Blog [^]

        W 1 Reply Last reply
        0
        • R Rocky Moore

          That is one of the problems with the Mozilla/Geko team is that they are so closed minded to "standards only or die", that they make it hard on everyone else. Reminds me of Apple who claims to be the usability expert while they cannot see the benefit of a right mouse button or scroll wheel, they just stick in their old rut, even if it is wrong. Standards are fine, but who cares if the usabilty is not there. Rocky <>< www.HintsAndTips.com - Now with "Recommendation" postings www.MyQuickPoll.com - Now with Recent Poll List

          A Offline
          A Offline
          Andrew Peace
          wrote on last edited by
          #12

          To be fair on Apple, both the scroll wheel and right mouse button function correctly when a mouse with either of the functions is connected. -- Andrew.

          R 1 Reply Last reply
          0
          • M Michael Dunn

            The maintainers of that website appear to be unwilling to fix their message composing javascript to work with other browsers than IE Um, your bashing is directed at the wrong place. Chris has said numerous times that Mozilla doesn't implement the one object he needs (the one that returns the currently-selected text) to do text formatting. If that object works now, or if there's an alternate way to do it, why not share your script with the site to improve it. --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- Ford, what's this fish doing in my ear?

            A Offline
            A Offline
            Andy Brummer
            wrote on last edited by
            #13

            There is an alternate way to do it. Mozilla supports textbox.selectionStart and textbox.selectionEnd. These give you the zero based begin and end positions of the selection. The following script would make a smiley appear at the carret.

            if (objTextArea.selectionEnd || objTextArea.selectionEnd == '0')
            {
               objTextArea.focus();
               var endPos = objTextArea.selectionEnd;
               var strEnd = objTextArea.value.length;
               objTextArea.value = objTextArea.value.substring(0, endPos) + ' ' + strInsertText + ' ' + objTextArea.value.substring(endPos, strEnd);
            }

            The other functions have similar implementations. The "trick" is that you have to do a textbox.focus(); before they return valid results.


            I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon

            1 Reply Last reply
            0
            • A Andrew Peace

              To be fair on Apple, both the scroll wheel and right mouse button function correctly when a mouse with either of the functions is connected. -- Andrew.

              R Offline
              R Offline
              Rocky Moore
              wrote on last edited by
              #14

              "To be fair", you buy an MAC from Apple, do you get a mouse with a scroll wheel and righ mouse button? No, it is an add-on because they think they know better. One button is all anyone will need. One day maybe they will come out into the real world and see that they have been wrong and correct it just like they did with the Mac OS when they dumped it for a Unix OS. Rocky <>< www.HintsAndTips.com - Now with "Recommendation" postings www.MyQuickPoll.com - Now with Recent Poll List

              A S 2 Replies Last reply
              0
              • R Rocky Moore

                "To be fair", you buy an MAC from Apple, do you get a mouse with a scroll wheel and righ mouse button? No, it is an add-on because they think they know better. One button is all anyone will need. One day maybe they will come out into the real world and see that they have been wrong and correct it just like they did with the Mac OS when they dumped it for a Unix OS. Rocky <>< www.HintsAndTips.com - Now with "Recommendation" postings www.MyQuickPoll.com - Now with Recent Poll List

                A Offline
                A Offline
                Andrew Peace
                wrote on last edited by
                #15

                I agree, one mouse button doesn't cut it. I was only pointing out that should someone choose to use a two button mouse, the facility is there, they're given the choice. I guess it's worst on the laptops where the touchpads have only one button, can't really just get a new touchpad :-). -- Andrew.

                1 Reply Last reply
                0
                • M Michael P Butler

                  Ramanan Sivan wrote: Plus as someone mentioned its a moving target. I mean who the hell wants to develop targeting something that's not even fixed. Isn't that what all programmers do. :-D Our customer requirements are moving targets, our development tools keep changing, not to mention all the API's that are created and forgotten about. Michael CP Blog [^]

                  W Offline
                  W Offline
                  wrykyn
                  wrote on last edited by
                  #16

                  :sigh: Unfortunately for me that's so true. I write medical applications and ever so often the guys I write for change the camera, the camera box yada yada yada. And then blame me when the apps I wrote break. "One of the Georges," said Psmith, "I forget which, once said that a certain number of hours' sleep a day--I cannot recall for the moment how many--made a man something, which for the time being has slipped my memory."

                  1 Reply Last reply
                  0
                  • R Rocky Moore

                    "To be fair", you buy an MAC from Apple, do you get a mouse with a scroll wheel and righ mouse button? No, it is an add-on because they think they know better. One button is all anyone will need. One day maybe they will come out into the real world and see that they have been wrong and correct it just like they did with the Mac OS when they dumped it for a Unix OS. Rocky <>< www.HintsAndTips.com - Now with "Recommendation" postings www.MyQuickPoll.com - Now with Recent Poll List

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

                    You've never sat a new computer user down and tried to get them comfortable using a mouse, have you? Trust me, it's easier to start with as few buttons as possible...
                    You**'re one microscopic cog** in his catastrophic plan...

                    R 1 Reply Last reply
                    0
                    • S Shog9 0

                      You've never sat a new computer user down and tried to get them comfortable using a mouse, have you? Trust me, it's easier to start with as few buttons as possible...
                      You**'re one microscopic cog** in his catastrophic plan...

                      R Offline
                      R Offline
                      Rocky Moore
                      wrote on last edited by
                      #18

                      Well, just because there is more than one does not mean they have to use them. That would be like saying you want cars to only have a steering wheel and we will leave out the break and gas pedals to make it easier for them. Actually, with the MAC, that would be like putting buttons under their seat that they have to use to go forward and backwards since the MAC you have to learn to hold down the command key to get the functionality you would have with a right mouse button. Rocky <>< www.HintsAndTips.com - Now with "Recommendation" postings www.MyQuickPoll.com - Now with Recent Poll List

                      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