This is being discussed in another thread at the moment (
http://groups.google.com/group/jquery-en/browse_thread/thread/b7eadd9ca0a683a4
).

There are a few plugins that you can try that should help:

  http://plugins.jquery.com/project/bind
  http://higginsforpresident.net/js/jq.hitch.js

Karl Rudd

On Wed, Mar 4, 2009 at 10:09 PM, theadam <adam.parchimow...@gmail.com> wrote:
>
> Hi,
>
> I am atempting to cover a simple custom solution from prototype to
> jQuery and I came a long a problem I am unable to solve.
>
> I have added some behaviours to the app, like sorting divs and
> switching their visibility. I know there are plugins for this but
> while checking them out I couldn't make then do what I wanted (i.e.
> there was no sorting plugin that would allow me to disable dragging
> the elements and enable me to create handlers for moving them up /
> down).
> I managed to create my own plugin that accepts extra handlers on
> reordering elements, but there is another feature I need. I want the
> state of all the reordering and showing/hiding to be stored in cookies
> and I wanted to create a js class to handle a simple json object that
> would be stored in cookies (couldn't think of a jQuery plugin way to
> accomplish this). What I wanted to do was to pass a handler (a certain
> method of this object) as a parameter to jQuery plugin. However there
> is no bind(this) method known from prototype to bind the context to a
> handler, and the handler method requires the access to the object.
>
> If I wasn't clear on this let me know. To sum this up - I want to
> create custom reordering / visibility toggling behaviour + independent
> class / plugin for storing the state of those operations and loading
> it up on the page load.
>

Reply via email to