Skip to main content

Bug Tracker

Side navigation

#5066 closed bug (duplicate)

Opened August 17, 2009 09:15PM UTC

Closed November 19, 2010 01:04AM UTC

Last modified November 19, 2010 01:04AM UTC

Firefox 3.5.2 update Broke passing arrays through $.get() function.

Reported by: El_Wray Owned by:
Priority: major Milestone: 1.3.2
Component: ajax Version: 1.3.2
Keywords: get firefox broken Cc:
Blocked by: Blocking:
Description

This code worked, and still works on IE

myArrayVar = ['a','b','c','d'];

$.get("someUrl",

{'param1':'val1',

'param2':'val2',

'arrayParam[]':myArrayVar});

Parameters 1 & 2 get passed and works great.

arrayParam is ignored.

Used to work on firefox 3.5.1 but the new update 3.5.2 killed it. The array "arrayParams" is never passed. Checked it with Firebug and the request doesn't send the array as a param.

Attachments (0)
Change History (4)

Changed August 17, 2009 09:45PM UTC by El_Wray comment:1

More details on the problem.

$("#deleteBtn").live("click",function(){
		var selObjects=$("input[name='sel[]'][checked=true]");
		var sel = new Array();
		selObjects.each(function(){
			sel.push($(this).val());
		});

		$.get(".",{'sel[]':sel},function(data){
			//Do something, show stuff.
		});
	});

Changed August 18, 2009 06:20AM UTC by El_Wray comment:2

More testing showed the problem is not really in passing arrays. The problem is in the selectors,

var selObjects=$("input[name='sel[]'][checked=true]");

This no longer works. Looks like the issue is with the checked attribute.

Changed November 19, 2010 01:04AM UTC by dmethvin comment:3

resolution: → duplicate
status: newclosed

Changed November 19, 2010 01:04AM UTC by dmethvin comment:4

Duplicate of #5930.