Sagarmichael
Sagarmichael

Reputation: 1624

grails remotefunction more than one param

I can send one param to the controller using the following in javascript:

 <g:javascript>

     var sel = "test";
     <g:remoteFunction action="newExisting" method="GET" update="updateThis" params="'sel='+sel"/>

 </g:javascript>

I cant figure out the syntax to add a second param

Upvotes: 0

Views: 301

Answers (2)

SAGAR MANE
SAGAR MANE

Reputation: 685

Another Way to pass multipale values like

params="[sel1: sel1,sel2:sel2]" 

Upvotes: 2

john Smith
john Smith

Reputation: 17906

you could pass clientside variables like :

params='\'param1=\'+sel+\'&booleanParam2=true\''

Upvotes: 3

Related Questions