Grails Remote Function and Ajax
Posted
by WaZ
on Stack Overflow
See other posts from Stack Overflow
or by WaZ
Published on 2010-06-08T08:57:37Z
Indexed on
2010/06/08
9:02 UTC
Read the original article
Hit count: 335
grails
I am trying to list addresses and onChange event I send the address ID and return a list of users.
<g:select name="AddressID" from="${address}" optionKey="id" optionValue="address"
onchange="${ remoteFunction(action:'testMe', params:'\'id=\' + this.value' ,update:'show' )}">
</g:select>
I call this div "show".
<div id="show">
<g:each in="${users}" status="i" var="C">
<h3>${C}</h3>
</g:each>
</div>
However, when I click the item on the list box I get the following error:
description The requested resource (/MyTest/WEB-INF/grails-app/views/test/testMe.jsp) is not available.
My understanding of an update attribute inside a remoteFunction is that it is the name of the div which gets refreshed after the remoteFunction call is compeleted.
Thanks.
© Stack Overflow or respective owner