Bug Tracker

Modify

Ticket #8761 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

array in post

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

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

)

)

Change History

comment:1 Changed 2 years ago by rwaldron

  • Status changed from new to closed
  • Resolution set to invalid
  • Component changed from unfiled to ajax

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.