G:textfield remote function advice needed
i need advice on groovy. My remote function's not working. here is my codes. please advice.
<g:textField name="name"
onchange="${remoteFunction(action:'validateName',update:'errorName', para开发者_如何学运维ms:'\'name=\' + this.value' )}"/>
The remote constraints plugin does most of the work for you.
And, if you want to use only the ajax function you have to use the "remoteConstraints" tag:
<g:remoteConstraints
beanName="Test"
fieldName="name"
template="/shared/error"
var="errorBean"
updateElement="errorsDiv"/>
精彩评论