Hi,
Background:
I''m writing a piece of code to display etsy.com items in a squidoo
module. Squidoo provide a module development kit which uses ajax and
php.
See the example here: http://www.demido.co.uk/etsy (Currently only
works in FF).
The user enters a valid etsy userID, hit go, an ajax.updater passes
the userid to a php script the php script goes
off and finds the items returns the items in two lists and updates my
content div with these two lists.
After this I call a sortable.create on the two lists. And onUpdate the
serialised lists get passed into two hidden input fields.
If an item is "removed", I remove the element using Element.remove, i
then recall the function to create the lists again and put the
serialised lists again into the two hidden elements. This was the only
way I could work out how to remove an item.
Questions:
1. Is there away to make just one li within the ul element unsortable,
and removed from the list for when i call sortable.serialise? (I don''t
mean sortable.destroy, I tried this and it makes the ul element
unsortable, not a specific li).
2. I call the ajax.updater and then the function sortable.create, but
"sometimes" when the go button is hit, it does return the list, but it
isn''t sortable, this has been driving me a little crazy!
3. Any ideas if there is a better way to do this?
Thanks in advance.
- Matt
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---