Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Double submission with `ajax:ajaxForm` in grails only if it is in `dialog()`
- <div id="newFoo">
- <ajax:ajaxForm controller="home" action="foo"
- id="fooForm" onSuccess="handleFooResponse"
- onError="showError">
- <!-- some fields -->
- <g:submitButton name="sub" value="store" />
- </ajax:ajaxForm>
- </div>
- <form id="newFooForm">
- <div align="center" id="map" style="width: 400px; height: 250px">
- <br />
- </div>
- <input type="submit" name="sub" value="store" id="sub" />
- </form><script type="text/javascript"> $("#newLocationForm").submit(function(event){ event.preventDefault();$.ajax({ type: "POST", url: "/web/home/newLocation", data: $(this).serialize(), success: handleNewLocationResponse, error: showError }); return false;});</script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement