Welcome Guest, Not a member yet? Register   Sign In
how to pass array from view to controller
#8

(This post was last modified: 03-28-2019, 05:53 AM by ciadmin.)

Although typically setting the traditional property helps with any time you are passing arrays via AJAX calls, you can still run into issues with serialization. You often need to explicitly set the name of the parameter that you are expecting to populate as seen below :

data: { 'ids': ids },

*SEO link redacted*
Reply


Messages In This Thread
RE: how to pass array from view to controller - by raviksharma - 03-28-2019, 05:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB