Modify ↓
Ticket #8279 (closed bug: invalid)
passing array as data in .load() method not recognized in controller
| Reported by: | malay.khandhediya@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | ajax | Version: | 1.4.3 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description (last modified by jitter) (diff)
I am using asp.net mvc 3.0 and jquery I am loading partial view dynamically through load method. The code is as below:
code in my js file:
dvLoadGrid.load('MyModelMethod', { 'names': ["name1", "name2"] }, function (data) { });
method in controller
public ActionResult MyModelMethod(string[] strArrArgs)
{
return View("myPartialView");
}
The above method gets called but the parameter 'strArrArgs' is null. The same works with jQuery.ajax.
Am i missing something??
Please help...
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

The jQuery bug tracker is not for support requests. Please try the #jquery irc channel on freenode or use the jQuery Forum for support requests which aren't related to jQuery core directly.
If you can indeed narrow this down to a bug in jQuery.load/jQuery.ajax please report back with a reduced test cases which reproduces the issue you are experiencing, on http://jsfiddle.net.
How to report bugs