Created
November 3, 2011 09:12
-
-
Save lalala/1336103 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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