Add data submitted to the server upon an Ajax request

Add data submitted to the server upon an Ajax request

kvn9328kvn9328 Posts: 18Questions: 7Answers: 0
edited October 2014 in Free community support

Hi,

I am trying to send the Spring Form data as data while making a ajax call.

"ajax":{  "url":"ajax-pagination-read.html",
             "data": function(d){d.extra_search = $("#search-form").serialize();}
}

In my Controller for'ajax-pagination-read' i am expecting to get searchForm object.

Could anyone let me know if i can pass this as an object?

If we can, please post a snippet on how to do that.

Thanks!

This discussion has been closed.