I just forgot, on the scriptaculous wiki, on exemples section, you can
have an exemple:
http://wiki.github.com/madrobby/scriptaculous/draggable

--
david

On 24 juin, 12:50, david <david.brill...@gmail.com> wrote:
> Hi James,
>
> var items = document.getElementsByClassName("bla");
> for each item, SAVEDDRAGGABLE[i]=new Draggable(items[i].id... etc)
>
> then to destroy them, just do for each SAVEDDRAGGABLE,
> SAVEDDRAGGABLE.destroy().
>
> So just save the scriptaculous object in creation, and use the method
> destroy() of draggable to destroy them.
>
> --
> david
>
> On 23 juin, 18:10, Wyerarch <wyera...@gmail.com> wrote:
>
> > Hi All,
>
> > I'm loving this drag drop library in my application, however i've got
> > serious memory leaks because I don't know how to destroy the items.
>
> > I'm using the .net ScriptManager.RegisterClientScriptBlock method to
> > register my script, so that all items from the database can be
> > "Draggables".
>
> > However, I can't find a way of using the destroy method on them?
>
> > In my register block i'm loading all the Draggables into an array -
> > e..g var items = document.getElementsByClassName("bla");
>
> > Then for each item, new Draggable(items[i].id... etc)
>
> > How can I unload/destory them on async postback?
>
> > if I look at the variable "items" it references the divs, not the
> > objects? How can I access the objects to destroy them?
>
> > Thanks,
>
> > James.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to