On Feb 23, 2009, at 1:12 PM, vanq69 wrote:
> "&order=" + {order:Sortable.serialize("chunksList")} +
Simplify!
"&order=" + Sortable.serialize("chunksList") +
That should fix that part. (You were mixing hash syntax with string
syntax.)
You've also got a ton and a half of redundant code on that page.
Prototype.js already gives you a fully-featured Ajax object. You've
effectively re-written much of it in this snippet, and probably given
yourself a fair amount of heartache in the process. Have a read
through the docs at http://prototypejs.org/api/ajax
Your entire rest of your script could probably be refactored as
something close to:
new Ajax.Updater('chunksList','yourserver.php',{});
And everywhere you've written out document.getElementById('myElement')
you could just type $('myElement').
Walter
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---