Scriptaculous Draggable Fires Off OnClick Event

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vunet

    Scriptaculous Draggable Fires Off OnClick Event

    Hello,
    I hope this is a right place to ask about Scriptaculous library.
    I started using draggable and droppables effects for the first time
    and my draggable is simply initialized as

    new Draggable(image Object,{revert: true});

    However, my imageObject also has an onClick event which is fired in
    Firefox every time I drag the image. It surprisingly does not happen
    in IE6. Can anyone recommend a fix or suggest a workaround for this?
    Thank you
  • Thomas 'PointedEars' Lahn

    #2
    Re: Scriptaculous Draggable Fires Off OnClick Event

    vunet wrote:
    I hope this is a right place to ask about Scriptaculous library.
    It isn't. You were looking for one of the resources pointed to by the
    "docs & wiki" section of http://script.aculo.us/

    That said, Script.aculo.us is based on Prototype.js and so inherently
    flawed. You are well advised not to use it.


    PointedEars
    --
    realism: HTML 4.01 Strict
    evangelism: XHTML 1.0 Strict
    madness: XHTML 1.1 as application/xhtml+xml
    -- Bjoern Hoehrmann

    Comment

    • vunet

      #3
      Re: Scriptaculous Draggable Fires Off OnClick Event

      On Apr 22, 6:01 pm, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
      wrote:
      vunet wrote:
      I hope this is a right place to ask about Scriptaculous library.
      >
      It isn't. You were looking for one of the resources pointed to by the
      "docs & wiki" section ofhttp://script.aculo.us/
      >
      That said, Script.aculo.us is based on Prototype.js and so inherently
      flawed. You are well advised not to use it.
      >
      PointedEars
      --
      realism: HTML 4.01 Strict
      evangelism: XHTML 1.0 Strict
      madness: XHTML 1.1 as application/xhtml+xml
      -- Bjoern Hoehrmann
      I am just really curious about what experts think about Prototype
      framework. I understand it extends Object methods, thus opening
      possibilities to some conflicts with other code or frameworks, and
      surely, JS expert would rather create his/her own "Prototype" to use,
      but what are the main reasons experts would not recommend using it if
      it may in fact simplify and speed up the development process of non-
      experts?
      Thank you

      Comment

      • blechler

        #4
        Re: Scriptaculous Draggable Fires Off OnClick Event

        On Apr 23, 10:25 am, vunet <vunet...@gmail .comwrote:
        On Apr 22, 6:01 pm, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
        wrote:
        >
        vunet wrote:
        I hope this is a right place to ask about Scriptaculous library.
        >
        It isn't. You were looking for one of the resources pointed to by the
        "docs & wiki" section ofhttp://script.aculo.us/
        >
        That said, Script.aculo.us is based on Prototype.js and so inherently
        flawed. You are well advised not to use it.
        >
        PointedEars
        --
        realism: HTML 4.01 Strict
        evangelism: XHTML 1.0 Strict
        madness: XHTML 1.1 as application/xhtml+xml
        -- Bjoern Hoehrmann
        >
        I am just really curious about what experts think about Prototype
        framework. I understand it extends Object methods, thus opening
        possibilities to some conflicts with other code or frameworks, and
        surely, JS expert would rather create his/her own "Prototype" to use,
        but what are the main reasons experts would not recommend using it if
        it may in fact simplify and speed up the development process of non-
        experts?
        Thank you
        There is a Google group called "Ruby On Rails: Spinoffs" where you can
        get assistance.

        Mr. Lahn is a very vocal opponent of Prototype and Scriptaculous.
        IMHO it's fine if it gets the job done for you. The important thing
        is to work with tools that are in your comfort zone and allow you to
        get the job done in the time allotted to you by your work.

        This subject matter often brings about a big flurry of messages as to
        why Prototype is worse than Hitler.

        blechler

        Comment

        • Thomas 'PointedEars' Lahn

          #5
          Re: Scriptaculous Draggable Fires Off OnClick Event

          vunet wrote:
          [...] what are the main reasons experts would not recommend using
          [Prototype.js] [...]?
          This has already been discussed numerous times, at great length, not to say
          ad nauseam, before. Surely you are able to type "Prototype" into Google's
          search box and find the threads by yourself.


          PointedEars
          --
          Use any version of Microsoft Frontpage to create your site.
          (This won't prevent people from viewing your source, but no one
          will want to steal it.)
          -- from <http://www.vortex-webdesign.com/help/hidesource.htm>

          Comment

          • Thomas 'PointedEars' Lahn

            #6
            Re: Scriptaculous Draggable Fires Off OnClick Event

            blechler wrote:
            There is a Google group called "Ruby On Rails: Spinoffs" where you can
            get assistance.
            Where you can try to get assistance.
            Mr. Lahn is a very vocal opponent of Prototype and Scriptaculous.
            Yes, I am, and if that accounts for anything, I am by far not the only one.
            IMHO it's fine if it gets the job done for you.
            I do not think you are in a position to properly assess the code quality (or
            rather the lack thereof) of said library.
            The important thing is to work with tools that are in your comfort zone
            and allow you to get the job done in the time allotted to you by your
            work.
            No, it is important to get the job done in a good way. A way that does not
            eat resources when unecessary, a way that plays nice with other libraries, a
            way that does not interfere with general programming patterns, that does not
            require you to jump through hoops to get the job done.
            This subject matter often brings about a big flurry of messages as to why
            Prototype is worse than Hitler.
            Godwin's Law. You lose.


            PointedEars
            --
            var bugRiddenCrashP ronePieceOfJunk = (
            navigator.userA gent.indexOf('M SIE 5') != -1
            && navigator.userA gent.indexOf('M ac') != -1
            ) // Plone, register_functi on.js:16

            Comment

            • vunet

              #7
              Re: Scriptaculous Draggable Fires Off OnClick Event

              On Apr 23, 1:40 pm, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
              wrote:
              vunet wrote:
              [...] what are the main reasons experts would not recommend using
              [Prototype.js] [...]?
              >
              This has already been discussed numerous times, at great length, not to say
              ad nauseam, before. Surely you are able to type "Prototype" into Google's
              search box and find the threads by yourself.
              >
              PointedEars
              --
              Use any version of Microsoft Frontpage to create your site.
              (This won't prevent people from viewing your source, but no one
              will want to steal it.)
              -- from <http://www.vortex-webdesign.com/help/hidesource.htm>
              I'll try again. Thanks. Maybe I should type "Prototype" this time.

              Comment

              Working...