On Nov 30, 12:24 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> My problem is that elements that were included in my site with
> innerHTML can´t be sortable because the DOM doesn´t know that these
> elements are there.
> Has anybody a solution or an idea to this problem?
>
> ToM
Simply make sure that you call your Sortable.create method AFTER you
add the elements using innerHTML and that the elements are of the same
kind (same tag) as the tag specified in the Sortable.create options.
That should do it. If the sortable is created before and you add
elements through innerHTML you can also use Sortable.create to re-
create it and incorporate the newly added elements.
Hope this helps.
All the best,
George
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---