I'm trying to get started with the rails-style webhelpers and use
sortable_element to reorder a list.

Using the mako template below, the reordering works, but the update
action on the current controller doesn't get called. What am I doing
wrong?

TIA /patrik

<html>
<head>
${h.javascript_include_tag(builtins=True)}
</head>
<body>
<ol id="sortme">
% for (id, it) in c.sortme:
    <li style="cursor: move;" id="${id}">${it}</li>
% endfor
</ol>
${h.sortable_element('sortme', url=h.url_for(action='update'))}
</script>
</body>
</html>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to