Thread
:
AJAX/json vars return undefined.
View Single Post
07-18-2012, 06:16 AM
PM User
|
#
2
rnd me
Senior Coder
Join Date: Jun 2007
Location: Urbana
Posts: 3,553
Thanks: 9
Thanked 480 Times in 463 Posts
your object has keys, not indices:
Code:
var task = data.task; var id = data.id;
and you need to use $_POST ($_FORM?) not $_GET in php...
if you like GET, just build the url by hand instead of using jQuery's data tool...
__________________
my site
(updated 5/13)
STATS
(2013/5) HTML5:90.2% MOB:15.2% IE7:0.5% IE8:8.4% IE9:8.5%
IE10:8.5%
Last edited by rnd me; 07-18-2012 at
06:20 AM
..
Users who have thanked rnd me for this post:
absoleet
(07-18-2012)
rnd me
View Public Profile
Visit rnd me's homepage!
Find More Posts by rnd me