Skip to content

Instantly share code, notes, and snippets.

@lalala
Created November 3, 2011 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lalala/1336103 to your computer and use it in GitHub Desktop.
Save lalala/1336103 to your computer and use it in GitHub Desktop.
<form id="new_task" class="new_task" method="post" data-remote="true" action="/tasks" accept-charset="UTF-8" style="display: none;">
<div style="margin:0;padding:0;display:inline">
<input id="task_goal_id" type="hidden" value="2" name="task[goal_id]">
<input id="task_description" type="text" size="30" name="task[description]">
<input type="submit" value="Submit" name="commit">
</form>
# doesnt do much
$('form.new_task').bind('ajax:success', (e, data, status, xhr) ->
alert data
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment