Bug Tracker

Ticket #8279 (closed bug: invalid)

Opened 4 years ago

Last modified 3 years ago

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

comment:1 Changed 4 years ago by jitter

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to ajax
  • Description modified (diff)

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

Note: See TracTickets for help on using tickets.