svSeba
Jan 26th, 2011, 07:23 AM
Hello, help please with the following problem:
I want to call javascript function after successful end of action.
The action fulfills successfully,but javascript function (alert('hi')) isn't caused
form:
<g:form >
<g:submitToRemote update="[success: 'message']" action="shiftcreate"
value="Create" onSuccess="alert('hi');" />
<div id="message"></div>
</g:form>
and action:
def shiftcreate = {
render "hello"
}
what's the problem?
I want to call javascript function after successful end of action.
The action fulfills successfully,but javascript function (alert('hi')) isn't caused
form:
<g:form >
<g:submitToRemote update="[success: 'message']" action="shiftcreate"
value="Create" onSuccess="alert('hi');" />
<div id="message"></div>
</g:form>
and action:
def shiftcreate = {
render "hello"
}
what's the problem?