Skip to main content

Bug Tracker

Side navigation

#8761 closed bug (invalid)

Opened April 04, 2011 10:30AM UTC

Closed April 04, 2011 12:14PM UTC

array in post

Reported by: anonymous Owned by:
Priority: undecided Milestone: 1.next
Component: ajax Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:
Description

array = new Array();

array[8]='text';

$.post("file.php", {arr:array}, function(data){alert(data)});

/////////////////////////////////

file.php return print_r($_POST);

/////////////////////////////////

alert -

Array

(

[arr] => Array

(

[0] => undefined

[1] => undefined

[2] => undefined

[3] => undefined

[4] => undefined

[5] => undefined

[6] => undefined

[7] => undefined

[8] => text

)

)

Attachments (0)
Change History (1)

Changed April 04, 2011 12:14PM UTC by rwaldron comment:1

component: unfiledajax
resolution: → invalid
status: newclosed

That behaviour is not a jQuery bug or even a bug at all.