EasyUI Forum
September 16, 2025, 11:21:18 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Pass multiple parameters to Controller class while removing records  (Read 8783 times)
Jakob
Newbie
*
Posts: 8


View Profile
« on: April 04, 2013, 05:58:29 AM »

Hello

How can I pass multiple parameters while removing records from datagrid?

This is the code I have taken from example
Code:
$.post('controller?flag=remove',{id:row.id},function(result){

My columns which are defined in html tables are prjId and prjDate which I would like to pass to my controller.

How can I do this?

P.S. When I looking Firebug console I could see only remove being passed as parameter.

Thanks
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: April 04, 2013, 06:13:24 AM »

Please try the code below:
Code:
$.post('controller',{
  flag: 'remove',
  id: row.id,
  prjId: row.prjId,
  prjDate: row.prjDate
},function(result){
  //...
});
Logged
Jakob
Newbie
*
Posts: 8


View Profile
« Reply #2 on: April 04, 2013, 07:46:16 AM »

Thanks stworthy, this helped.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!