Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ajax/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ajax G:textfield需要远程功能建议_Ajax_Grails_Groovy - Fatal编程技术网

Ajax G:textfield需要远程功能建议

Ajax G:textfield需要远程功能建议,ajax,grails,groovy,Ajax,Grails,Groovy,我需要关于groovy的建议。我的遥控器坏了。这是我的密码。请给我一些建议 <g:textField name="name" onchange="${remoteFunction(action:'validateName',update:'errorName', params:'\'name=\' + this.value' )}"/> 插件为您完成大部分工作 而且,如果只想使用ajax函数,则必须使用remoteConstraints标记:

我需要关于groovy的建议。我的遥控器坏了。这是我的密码。请给我一些建议

<g:textField name="name"
                  onchange="${remoteFunction(action:'validateName',update:'errorName', params:'\'name=\' + this.value' )}"/>
插件为您完成大部分工作

而且,如果只想使用ajax函数,则必须使用remoteConstraints标记:

 <g:remoteConstraints 
   beanName="Test" 
   fieldName="name" 
   template="/shared/error" 
   var="errorBean"
   updateElement="errorsDiv"/>

和你想做什么?!?!我想在人们使用ajax进行编辑时验证文本字段