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. Site Bugs / Suggestions
  4. The suggestion I promised (with demo)

The suggestion I promised (with demo)

Scheduled Pinned Locked Moved Site Bugs / Suggestions
csharpperlhtmlcom
40 Posts 10 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.
  • J Jason Jystad

    I am proud to announce the completion of the prototype for a suggested enhancement to the message composition pages of the CP forums. With important input from Nish and much cursing at my buggy Internet connection, I bring you the Code Project Posting Toolbar. :trumpeting fanfare: :) I took a snapshot of the html produced by the reply function in the forums to demonstrate my suggestion. In practice it would be available on any page where message composition is performed. To my knowledge, the full functionality of the prototype is only available in IE4.0+ on win32 platforms. If Chris decides to implement this feature, I have a method in mind that should make it fully cross-browser. The code is just a bit more involved and I did not want to spend the time unless Chris was going to use it. ;) I did a modification to the InsertText() function that also affects the smiley insertion functionality. This causes it to insert the smiley at the cursor position in the textarea when run in IE4.0+. When used under other browsers it will still just append the smiley to the end of the textarea's content. I believe I can also make this fully cross-browser if Chris decides to use it. Consider this a sub-suggestion. :-D

    Jason Jystad

    Cito Technologies
    Sonork ID: Ogami(100.9918)


    An object is simply a referenced thingy.
    --Larry Wall (Programming Perl)

    C Offline
    C Offline
    Chris Losinger
    wrote on last edited by
    #2

    sweet


    The ants are my friends. They're blowing in the wind.

    ISEffects - effects for images

    J 1 Reply Last reply
    0
    • J Jason Jystad

      I am proud to announce the completion of the prototype for a suggested enhancement to the message composition pages of the CP forums. With important input from Nish and much cursing at my buggy Internet connection, I bring you the Code Project Posting Toolbar. :trumpeting fanfare: :) I took a snapshot of the html produced by the reply function in the forums to demonstrate my suggestion. In practice it would be available on any page where message composition is performed. To my knowledge, the full functionality of the prototype is only available in IE4.0+ on win32 platforms. If Chris decides to implement this feature, I have a method in mind that should make it fully cross-browser. The code is just a bit more involved and I did not want to spend the time unless Chris was going to use it. ;) I did a modification to the InsertText() function that also affects the smiley insertion functionality. This causes it to insert the smiley at the cursor position in the textarea when run in IE4.0+. When used under other browsers it will still just append the smiley to the end of the textarea's content. I believe I can also make this fully cross-browser if Chris decides to use it. Consider this a sub-suggestion. :-D

      Jason Jystad

      Cito Technologies
      Sonork ID: Ogami(100.9918)


      An object is simply a referenced thingy.
      --Larry Wall (Programming Perl)

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

      Wow! That looks *really* nice! One little improvement might be to presearve selection after using one of the formatting buttons; not sure how difficult that would be. :-D --------_**

      From now on we can call C# and MC++ "The square wheel languages"

      **_

      -- Jack Handy, The Lounge

      J 2 Replies Last reply
      0
      • J Jason Jystad

        I am proud to announce the completion of the prototype for a suggested enhancement to the message composition pages of the CP forums. With important input from Nish and much cursing at my buggy Internet connection, I bring you the Code Project Posting Toolbar. :trumpeting fanfare: :) I took a snapshot of the html produced by the reply function in the forums to demonstrate my suggestion. In practice it would be available on any page where message composition is performed. To my knowledge, the full functionality of the prototype is only available in IE4.0+ on win32 platforms. If Chris decides to implement this feature, I have a method in mind that should make it fully cross-browser. The code is just a bit more involved and I did not want to spend the time unless Chris was going to use it. ;) I did a modification to the InsertText() function that also affects the smiley insertion functionality. This causes it to insert the smiley at the cursor position in the textarea when run in IE4.0+. When used under other browsers it will still just append the smiley to the end of the textarea's content. I believe I can also make this fully cross-browser if Chris decides to use it. Consider this a sub-suggestion. :-D

        Jason Jystad

        Cito Technologies
        Sonork ID: Ogami(100.9918)


        An object is simply a referenced thingy.
        --Larry Wall (Programming Perl)

        A Offline
        A Offline
        Alexandru Savescu
        wrote on last edited by
        #4

        It looks great :), however is it possible when you click on a button (i.e Bold) for the caret to be automatically placed between the tags and not at the end? Good job! :) Best regards, Alexandru Savescu

        J 1 Reply Last reply
        0
        • S Shog9 0

          Wow! That looks *really* nice! One little improvement might be to presearve selection after using one of the formatting buttons; not sure how difficult that would be. :-D --------_**

          From now on we can call C# and MC++ "The square wheel languages"

          **_

          -- Jack Handy, The Lounge

          J Offline
          J Offline
          Jason Jystad
          wrote on last edited by
          #5

          Yes, this is another feature that is on my list of to-dos. I am pretty sure I know how to do this, but I didn't want to spend the time until Chris gave it a yay or nay. :) If Chris decides to use it in one form or another, I have a list of features I will implement to make the whole system smoother than this prototype. I am glad you like it.

          Jason Jystad

          Cito Technologies
          Sonork ID: Ogami(100.9918)


          An object is simply a referenced thingy.
          --Larry Wall (Programming Perl)

          1 Reply Last reply
          0
          • A Alexandru Savescu

            It looks great :), however is it possible when you click on a button (i.e Bold) for the caret to be automatically placed between the tags and not at the end? Good job! :) Best regards, Alexandru Savescu

            J Offline
            J Offline
            Jason Jystad
            wrote on last edited by
            #6

            Good thought! I think I can see a way to do this, it will probably have to be Win32 IE specific due to some limitations in Netscape and Mac IE JavaScript. I will add this to my list of "Things to implement if Chris says he'll use it". :) ****Alexpro wrote: Good job! Thanks. :-O

            Jason Jystad

            Cito Technologies
            Sonork ID: Ogami(100.9918)


            An object is simply a referenced thingy.
            --Larry Wall (Programming Perl)

            1 Reply Last reply
            0
            • C Chris Losinger

              sweet


              The ants are my friends. They're blowing in the wind.

              ISEffects - effects for images

              J Offline
              J Offline
              Jason Jystad
              wrote on last edited by
              #7

              Thanks! I am really glad everybody seems to like it so much. I hope Chris goes for it! :crosses fingers: :)

              Jason Jystad

              Cito Technologies
              Sonork ID: Ogami(100.9918)


              An object is simply a referenced thingy.
              --Larry Wall (Programming Perl)

              1 Reply Last reply
              0
              • J Jason Jystad

                I am proud to announce the completion of the prototype for a suggested enhancement to the message composition pages of the CP forums. With important input from Nish and much cursing at my buggy Internet connection, I bring you the Code Project Posting Toolbar. :trumpeting fanfare: :) I took a snapshot of the html produced by the reply function in the forums to demonstrate my suggestion. In practice it would be available on any page where message composition is performed. To my knowledge, the full functionality of the prototype is only available in IE4.0+ on win32 platforms. If Chris decides to implement this feature, I have a method in mind that should make it fully cross-browser. The code is just a bit more involved and I did not want to spend the time unless Chris was going to use it. ;) I did a modification to the InsertText() function that also affects the smiley insertion functionality. This causes it to insert the smiley at the cursor position in the textarea when run in IE4.0+. When used under other browsers it will still just append the smiley to the end of the textarea's content. I believe I can also make this fully cross-browser if Chris decides to use it. Consider this a sub-suggestion. :-D

                Jason Jystad

                Cito Technologies
                Sonork ID: Ogami(100.9918)


                An object is simply a referenced thingy.
                --Larry Wall (Programming Perl)

                J Offline
                J Offline
                Jason Jystad
                wrote on last edited by
                #8

                I appreciate everybody posting their comments/suggestions for this. I want you all to know that I am keeping a list of the suggestions and I will do my best to implement them all if Chris says he will use this. As for the general comments, I am not keeping a list of them unless the suggest improvements. But rest assured that I am basking in them and reading them over and over again. :-D (Can we tell who doesn't get much positive feedback at work? :laugh: ) Thanks for all of the comments so far, and in advance for any more that come along.

                Jason Jystad

                Cito Technologies
                Sonork ID: Ogami(100.9918)


                An object is simply a referenced thingy.
                --Larry Wall (Programming Perl)

                1 Reply Last reply
                0
                • S Shog9 0

                  Wow! That looks *really* nice! One little improvement might be to presearve selection after using one of the formatting buttons; not sure how difficult that would be. :-D --------_**

                  From now on we can call C# and MC++ "The square wheel languages"

                  **_

                  -- Jack Handy, The Lounge

                  J Offline
                  J Offline
                  Jason Jystad
                  wrote on last edited by
                  #9

                  Actually, I went out to the prototype page and re-tested it. I wanted to make sure that I was correctly remembering what it presently did. What it does now is highlight the selection AND the newly inserted tag(s). Is this what you mean, or did you have some other behaviour in mind? If you wanted a different behaviour, please describe it to me so I can include it on my list correctly. (Remember that the full functionality of this prototype is limited to IE 4.x+ on Win32 platforms. I will be doing the cross-browser mods if Chris chooses to implement this.) Thanks for the suggestions!

                  Jason Jystad

                  Cito Technologies
                  Sonork ID: Ogami(100.9918)


                  An object is simply a referenced thingy.
                  --Larry Wall (Programming Perl)

                  S 1 Reply Last reply
                  0
                  • J Jason Jystad

                    Actually, I went out to the prototype page and re-tested it. I wanted to make sure that I was correctly remembering what it presently did. What it does now is highlight the selection AND the newly inserted tag(s). Is this what you mean, or did you have some other behaviour in mind? If you wanted a different behaviour, please describe it to me so I can include it on my list correctly. (Remember that the full functionality of this prototype is limited to IE 4.x+ on Win32 platforms. I will be doing the cross-browser mods if Chris chooses to implement this.) Thanks for the suggestions!

                    Jason Jystad

                    Cito Technologies
                    Sonork ID: Ogami(100.9918)


                    An object is simply a referenced thingy.
                    --Larry Wall (Programming Perl)

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

                    Jason Jystad wrote: What it does now is highlight the selection AND the newly inserted tag(s). That is what i meant; but it doesn't work for me :( I'm using IE 6.0.26 on Win2k; i'll try it on WinXP when i get home. ---Shog4---_**

                    From now on we can call C# and MC++ "The square wheel languages"

                    **_

                    -- Jack Handy, The Lounge

                    J 1 Reply Last reply
                    0
                    • S Shog9 0

                      Jason Jystad wrote: What it does now is highlight the selection AND the newly inserted tag(s). That is what i meant; but it doesn't work for me :( I'm using IE 6.0.26 on Win2k; i'll try it on WinXP when i get home. ---Shog4---_**

                      From now on we can call C# and MC++ "The square wheel languages"

                      **_

                      -- Jack Handy, The Lounge

                      J Offline
                      J Offline
                      Jason Jystad
                      wrote on last edited by
                      #11

                      Really!!?! I am using IE 6.0.26 on Win2k Pro here and it works flawlessly. What does it do on yours?

                      Jason Jystad

                      Cito Technologies
                      Sonork ID: Ogami(100.9918)


                      An object is simply a referenced thingy.
                      --Larry Wall (Programming Perl)

                      S 1 Reply Last reply
                      0
                      • J Jason Jystad

                        Really!!?! I am using IE 6.0.26 on Win2k Pro here and it works flawlessly. What does it do on yours?

                        Jason Jystad

                        Cito Technologies
                        Sonork ID: Ogami(100.9918)


                        An object is simply a referenced thingy.
                        --Larry Wall (Programming Perl)

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

                        I went back and tried it again; you are correct, it does select the text + tags correctly - but it sometimes does not show the selection! When i select text with the keyboard, everything is good, after i press one of the buttons it will display the new selection and the edit box will have focus. But if i select text using the mouse, and then click one of the buttons, the box has focus, but the selection is not visible, and the cursor is gone. The only way i can tell it is selected is to type something (since that deletes the selection) or hold down shift and move the mouse (since that extends the selection). It is very strange... But at least it works via the keyboard :) ---Shog2---_**

                        From now on we can call C# and MC++ "The square wheel languages"

                        **_

                        -- Jack Handy, The Lounge

                        J 3 Replies Last reply
                        0
                        • S Shog9 0

                          I went back and tried it again; you are correct, it does select the text + tags correctly - but it sometimes does not show the selection! When i select text with the keyboard, everything is good, after i press one of the buttons it will display the new selection and the edit box will have focus. But if i select text using the mouse, and then click one of the buttons, the box has focus, but the selection is not visible, and the cursor is gone. The only way i can tell it is selected is to type something (since that deletes the selection) or hold down shift and move the mouse (since that extends the selection). It is very strange... But at least it works via the keyboard :) ---Shog2---_**

                          From now on we can call C# and MC++ "The square wheel languages"

                          **_

                          -- Jack Handy, The Lounge

                          J Offline
                          J Offline
                          Jason Jystad
                          wrote on last edited by
                          #13

                          Great hopping horney toads!!!! I guess I have my first bug report. I will use it to create my first entry in a new list. *sigh* :)

                          Jason Jystad

                          Cito Technologies
                          Sonork ID: Ogami(100.9918)


                          An object is simply a referenced thingy.
                          --Larry Wall (Programming Perl)

                          1 Reply Last reply
                          0
                          • S Shog9 0

                            I went back and tried it again; you are correct, it does select the text + tags correctly - but it sometimes does not show the selection! When i select text with the keyboard, everything is good, after i press one of the buttons it will display the new selection and the edit box will have focus. But if i select text using the mouse, and then click one of the buttons, the box has focus, but the selection is not visible, and the cursor is gone. The only way i can tell it is selected is to type something (since that deletes the selection) or hold down shift and move the mouse (since that extends the selection). It is very strange... But at least it works via the keyboard :) ---Shog2---_**

                            From now on we can call C# and MC++ "The square wheel languages"

                            **_

                            -- Jack Handy, The Lounge

                            J Offline
                            J Offline
                            Jason Jystad
                            wrote on last edited by
                            #14

                            Ok, I just tested this from my end and it get even weirder. I get the same results you do, which is weird enough, but I also noticed that if you use the mouse to select a word by double clicking the word then it works perfectly. The tags are inserted and the whole thing is selected and shown. So the only way it doesn't show the highlighed selection is if you actually click and drag to highlight the initial selection. This is too damn weird. ;p I will work on this. Thanks for bringing it to my attention Shog.

                            Jason Jystad

                            Cito Technologies
                            Sonork ID: Ogami(100.9918)


                            An object is simply a referenced thingy.
                            --Larry Wall (Programming Perl)

                            1 Reply Last reply
                            0
                            • S Shog9 0

                              I went back and tried it again; you are correct, it does select the text + tags correctly - but it sometimes does not show the selection! When i select text with the keyboard, everything is good, after i press one of the buttons it will display the new selection and the edit box will have focus. But if i select text using the mouse, and then click one of the buttons, the box has focus, but the selection is not visible, and the cursor is gone. The only way i can tell it is selected is to type something (since that deletes the selection) or hold down shift and move the mouse (since that extends the selection). It is very strange... But at least it works via the keyboard :) ---Shog2---_**

                              From now on we can call C# and MC++ "The square wheel languages"

                              **_

                              -- Jack Handy, The Lounge

                              J Offline
                              J Offline
                              Jason Jystad
                              wrote on last edited by
                              #15

                              OK, I took a swing at fixing it. No good. I think it may be some kind of screwy IE bug. Let me know how XP handles it. I'll try it on IE 5.5 when I get home.

                              Jason Jystad

                              Cito Technologies
                              Sonork ID: Ogami(100.9918)


                              An object is simply a referenced thingy.
                              --Larry Wall (Programming Perl)

                              S 1 Reply Last reply
                              0
                              • J Jason Jystad

                                I am proud to announce the completion of the prototype for a suggested enhancement to the message composition pages of the CP forums. With important input from Nish and much cursing at my buggy Internet connection, I bring you the Code Project Posting Toolbar. :trumpeting fanfare: :) I took a snapshot of the html produced by the reply function in the forums to demonstrate my suggestion. In practice it would be available on any page where message composition is performed. To my knowledge, the full functionality of the prototype is only available in IE4.0+ on win32 platforms. If Chris decides to implement this feature, I have a method in mind that should make it fully cross-browser. The code is just a bit more involved and I did not want to spend the time unless Chris was going to use it. ;) I did a modification to the InsertText() function that also affects the smiley insertion functionality. This causes it to insert the smiley at the cursor position in the textarea when run in IE4.0+. When used under other browsers it will still just append the smiley to the end of the textarea's content. I believe I can also make this fully cross-browser if Chris decides to use it. Consider this a sub-suggestion. :-D

                                Jason Jystad

                                Cito Technologies
                                Sonork ID: Ogami(100.9918)


                                An object is simply a referenced thingy.
                                --Larry Wall (Programming Perl)

                                J Offline
                                J Offline
                                Jason Jystad
                                wrote on last edited by
                                #16

                                No changes to functionality, I was trying to debug the problem Shog noticed and when I was unable to fix it I had to do something to give me a feeling of accomplishment. ;) I just took a lap through the code to optimize a few things, make it neater and more consistant, and add some error checking. Otherwise no differences should be noticable.

                                Jason Jystad

                                Cito Technologies
                                Sonork ID: Ogami(100.9918)


                                An object is simply a referenced thingy.
                                --Larry Wall (Programming Perl)

                                C C 2 Replies Last reply
                                0
                                • J Jason Jystad

                                  No changes to functionality, I was trying to debug the problem Shog noticed and when I was unable to fix it I had to do something to give me a feeling of accomplishment. ;) I just took a lap through the code to optimize a few things, make it neater and more consistant, and add some error checking. Otherwise no differences should be noticable.

                                  Jason Jystad

                                  Cito Technologies
                                  Sonork ID: Ogami(100.9918)


                                  An object is simply a referenced thingy.
                                  --Larry Wall (Programming Perl)

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

                                  Just out of interest, have you looked at Yahoo! mail and Hotmail like Rich Text Editor? cheers, Chris Maunder

                                  J 1 Reply Last reply
                                  0
                                  • J Jason Jystad

                                    No changes to functionality, I was trying to debug the problem Shog noticed and when I was unable to fix it I had to do something to give me a feeling of accomplishment. ;) I just took a lap through the code to optimize a few things, make it neater and more consistant, and add some error checking. Otherwise no differences should be noticable.

                                    Jason Jystad

                                    Cito Technologies
                                    Sonork ID: Ogami(100.9918)


                                    An object is simply a referenced thingy.
                                    --Larry Wall (Programming Perl)

                                    C Offline
                                    C Offline
                                    Christian Graus
                                    wrote on last edited by
                                    #18

                                    If you're going to add tags, you should place the cursor between them. Otherwise, a cool idea.... Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002

                                    N J 2 Replies Last reply
                                    0
                                    • J Jason Jystad

                                      I am proud to announce the completion of the prototype for a suggested enhancement to the message composition pages of the CP forums. With important input from Nish and much cursing at my buggy Internet connection, I bring you the Code Project Posting Toolbar. :trumpeting fanfare: :) I took a snapshot of the html produced by the reply function in the forums to demonstrate my suggestion. In practice it would be available on any page where message composition is performed. To my knowledge, the full functionality of the prototype is only available in IE4.0+ on win32 platforms. If Chris decides to implement this feature, I have a method in mind that should make it fully cross-browser. The code is just a bit more involved and I did not want to spend the time unless Chris was going to use it. ;) I did a modification to the InsertText() function that also affects the smiley insertion functionality. This causes it to insert the smiley at the cursor position in the textarea when run in IE4.0+. When used under other browsers it will still just append the smiley to the end of the textarea's content. I believe I can also make this fully cross-browser if Chris decides to use it. Consider this a sub-suggestion. :-D

                                      Jason Jystad

                                      Cito Technologies
                                      Sonork ID: Ogami(100.9918)


                                      An object is simply a referenced thingy.
                                      --Larry Wall (Programming Perl)

                                      N Offline
                                      N Offline
                                      Nish Nishant
                                      wrote on last edited by
                                      #19

                                      Jason Jystad wrote: With important input from Nish :-O :-O :-O Thanks Jason :-) Nish


                                      Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.

                                      J 1 Reply Last reply
                                      0
                                      • C Christian Graus

                                        If you're going to add tags, you should place the cursor between them. Otherwise, a cool idea.... Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002

                                        N Offline
                                        N Offline
                                        Nish Nishant
                                        wrote on last edited by
                                        #20

                                        Christian Graus wrote: you should place the cursor between them I donno why, but that sentence looks like it came out of a pr0n book ;-) Nish


                                        Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.

                                        1 Reply Last reply
                                        0
                                        • J Jason Jystad

                                          OK, I took a swing at fixing it. No good. I think it may be some kind of screwy IE bug. Let me know how XP handles it. I'll try it on IE 5.5 when I get home.

                                          Jason Jystad

                                          Cito Technologies
                                          Sonork ID: Ogami(100.9918)


                                          An object is simply a referenced thingy.
                                          --Larry Wall (Programming Perl)

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

                                          It acts the same on WinXP; must be a IE6 problem. Good luck tracking it down :) ---Shog9---_**

                                          From now on we can call C# and MC++ "The square wheel languages"

                                          **_

                                          -- Jack Handy, The Lounge

                                          J 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