Announcement

Collapse
No announcement yet.

wow I did it!!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • wow I did it!!

    The JavaScript edit function: Check it out!

    You can directly edit your postings by just double clicking them. After you have finished editing the post, you'll be asked if you want to save it (which then should send a request to the server - not implemented in this example).

    Here is a technology preview (download the file).

    In this preview you can edit postings of all (2) users, which is not what we would want for the real version, but easy to control. It's cool because it's in place editing! Check it out!

    It's not compatible with bbcode yet.

    to answer your questions beforehand:
    1. I am just a little bit drunk
    2. this idea was floating around in my mind for a long time now
    3. JS is soo cool
    4. CHECK IT OUT!

    UPDATE I: Added ability to revert
    UPDATE II: Added preview for WYSIWYG editing

    Tested on Firefox 1.0, Internet Explorer 6 SP2, Opera 7.54

    test.zip has been removed after 4 downloads
    test2.zip has been removed after 3 downloads
    Attached Files
    Last edited by Atahualpa; December 30, 2004, 06:42.

  • #2
    Bravo. I'm so proud of You.
    Haven't tried it out yet, though.
    "I realise I hold the key to freedom,
    I cannot let my life be ruled by threads" The Web Frogs
    Middle East!

    Comment


    • #3
      That's cool...

      But would it be difficult to make it compatible with these boards?

      Comment


      • #4
        If you press cancel, it doesnt actually cancel.
        Yes, but that is intended. Otherwise you cannot really copy something in from other posts.
        The cancel option is when you say cancel and then reload the thread or close it or whatever.
        But, you are right I'll think about more sophisticated things, maybe put everything in a form with buttons "Save" and "Revert" below and not use the onBlur Method.

        But would it be difficult to make it compatible with these boards?
        Yes I think that should be possible, I try to make it as simple as possible so that the changes will be kept to a minimum.
        The bigger problem is that you edit HTML directly and I'd need to convert it to BBCode first. This could get a bit ugly, but probably only requires a single function.

        Comment


        • #5
          Does it actually work on all recent browsers?
          Civilization II: maps, guides, links, scenarios, patches and utilities (+ Civ2Tech and CivEngineer)

          Comment


          • #6
            Well, I'll try it
            Cuando un dedo señala la luna, los tontos miran el dedo. (del Mayo francés)

            Comment


            • #7
              Does it actually work on all recent browsers?
              In Firefox yes, in IE I believe too. Haven't checked Opera.

              Comment


              • #8
                Why?

                Comment


                • #9
                  Here is a slightly updated version. With Save and Revert buttons.

                  Should work fine in Firefox 1.0, IE6 and Opera 7.5

                  edit: I use the first post now for updates
                  Last edited by Atahualpa; December 30, 2004, 06:40.

                  Comment


                  • #10
                    Does anybody know why Firefox would always place the text in the textarea centered at first?
                    I smell a bug.

                    Comment


                    • #11
                      * sniff sniff *

                      nope, nothing. Bad coding maybe.
                      Is God willing to prevent evil, but not able? Then he is not omnipotent. Is he able, but not willing? Then he is malevolent. Is he both able and willing? Then whence cometh evil? Is he neither able nor willing?
                      Then why call him God? - Epicurus

                      Comment


                      • #12
                        You need to enable ActiveScripting in IE (JavaScript in Firefox) or in Opera (whatever it is called there).

                        If you open the file with IE, it will disable Active scripting by default and tell you about that in a lightly colored bar at the top. You need to click it and tell to enable it.
                        Or use Firefox and enable JS under tools>options>Web features

                        Comment


                        • #13
                          Originally posted by Kuciwalker
                          Why?

                          Comment


                          • #14
                            I concur
                            "I realise I hold the key to freedom,
                            I cannot let my life be ruled by threads" The Web Frogs
                            Middle East!

                            Comment


                            • #15
                              Originally posted by Kuciwalker

                              Comment

                              Working...
                              X