I'm trying to create sortables programatically.
If i do Sortable.create(sections[i],
{tag:'div',dropOnEmpty:true,containment:
["group1","group2","group3","group4","page"],constraint:false}); then
it works.
But since i want to create sortables dynamically, if i pass the group
as var groups = '"group1","group2"...' and do
Sortable.create(sections[i],{tag:'div',dropOnEmpty:true,containment:
[groups]... then this doesn't work.
Same goes if i try it as an array...
var groups = ["group1","group2"...]
Sortable.create(sections[i],{tag:'div',dropOnEmpty:true,containment:
[groups]...
How do i pass the groups in order for it to work?


--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-spinoffs@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to