PDA

View Full Version : The problem with property of g:submitToRemote



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?

svSeba
Jan 27th, 2011, 02:42 AM
Thinking there is no library jquery...

pledbrook
Jan 27th, 2011, 06:00 AM
Which version of Grails? There is a bug in the AJAX tags in 1.3.6, which has now been fixed. 1.3.7 is due next week barring any last minute issues.