On Jun 20, 2007, at 3:07 PM, besh wrote:
Hi, is $.post() always returning string as response data? $.post(url, { param1: value, param2: value }, function(data) { alert(typeof data); --> string } Even if the data is JSON? Do I have to use $.ajax() instead? Thanks for your help. Bohdan
Hi Bohdan, I'm not sure about the $.post(), but... if your data is JSON, you can use $.ajax() or $.getJSON() http://docs.jquery.com/Ajax#.24.getJSON.28_url.2C_params.2C_callback_.29 --Karl _________________ Karl Swedberg www.englishrules.com www.learningjquery.com