jQuery2.0.2 Ajax loosing scope - Why?!
Folks,
In my example below, an alert "1:emailaddress" is sent to the browser correctly, but "2:emailaddress" does not. Instead, firefox console tells me that data is undefined. Where am I going wrong? I am sure I could play with my ajax success data in this manner with jQuery 1.6, 1.7 and 1.8....
Anyone? (Help/pointers greatly appreciated)
var request=$.ajax( {
"type": "GET",
"url": "/Dashboard/dashboard.php", "data": data, "cache": false });
request.done(function ( data )
{ alert( "1:"+data[0].EmailAddress ); });
alert( "2:"+data[0].EmailAddress );