Created
July 1, 2013 08:35
-
-
Save ivarprudnikov/5899280 to your computer and use it in GitHub Desktop.
Example of grails form remote and onLoading event
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="layout" content="main"/> | |
<title>Homepage</title> | |
</head> | |
<body> | |
<g:formRemote dojoType="dijit.form.Form" method="post" | |
onLoading="myFunction()" id="submitForm" update="resultset" | |
name="formRemote" url="[ controller: 'main', action:'index' ]"> | |
<input type="text" name="x"> | |
</g:formRemote> | |
<div id="resultset"></div> | |
<g:javascript> | |
myFunction = function() { | |
alert("test 123 test"); | |
} | |
</g:javascript> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment