User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 361,924 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,660 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting

returning array from ajax.responseText?

Join Date: Oct 2007
Posts: 34
Reputation: adrive is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
adrive adrive is offline Offline
Light Poster

Re: returning array from ajax.responseText?

  #10  
Dec 2nd, 2007
thanks guys, after trying out few suggested methods here, jSON is the most superior method since it takes into consideration strings with quotes.

S.O.S, why am i able to decode the encoded json string directly using eval without Douglas Crockfords' Javascript library for JSON. ?

on my php, im just using simple json_encode($mydata);

on javascript, myData= eval("(" + xmlHttp.responseText + ")");
Last edited by adrive : Dec 2nd, 2007 at 11:08 pm.
Reply With Quote  
All times are GMT -4. The time now is 10:25 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC