Hi, I've already found out the answer, but big thanks for the post :)

Blair McKenzie-2 wrote:
> 
> response is the XMLRequest whatsit. This is so you can access response
> headers if you need to. So if the result is JSON:
> $.ajax({
>    type: 'GET',
>    url: 'php/query/product.php?id=1',
>    success: function(response){
>      var result = eval("("+response.responseText+")");
>      alert(result.id <http://response.id/>);
>    }
>  });
> 
> 
> On 9/29/06, Balkanski <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi, I tried following :
>>
>> $.ajax({
>>     type: 'GET',
>>     url: 'php/query/product.php?id=1',
>>     success: function(response){
>>       alert(response.id);
>>     }
>>   });
>>
>> the php script throws {id:1} (JSON notation data)
>>
>> The alert under IE is 'undefined';
>>
>> If I alert (response) - 'object' is displayed.
>> I tried many things -
>> eval(response)
>> eval('var p = ' + response);
>> and many more but nothing works...
>>
>> Any ideas ?
>>
>> Thanks in advance.
>> --
>> View this message in context:
>> http://www.nabble.com/%24.ajax%28...%29-not-working-under-IE-tf2356844.html#a6564807
>> Sent from the JQuery mailing list archive at Nabble.com.
>>
>>
>> _______________________________________________
>> jQuery mailing list
>> [email protected]
>> http://jquery.com/discuss/
>>
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/%24.ajax%28...%29-not-working-under-IE-tf2356844.html#a6599076
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to