Re: [Proto-Scripty] Re: ajax.updater - json to fill

2011-06-06 Thread Bertilo Wennergren
Eric wrote: > The easiest way to do that is to build a PHP array, and to use > JSON_Encode to convert it into a JSON encoded string; Yes, that's the right way. If you aim for an associative array you should however watch out for a particular gotcha: If such an array has members, it will turn in

Re: [Proto-Scripty] Re: A bit of assistance please

2011-06-06 Thread Walter Davis
On Jun 6, 2011, at 9:26 AM, Eric wrote: I did try it on Chrome on Windows with success: Google Chrome 11.0.696.77 (Build officiel 87952) WebKit 534.24 (branches/chromium/696@86868) V8 3.1.8.16 Agent utilisateur Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/ 534.24 (KHTML, like G

[Proto-Scripty] Re: A bit of assistance please

2011-06-06 Thread Eric
I did try it on Chrome on Windows with success: Google Chrome 11.0.696.77 (Build officiel 87952) WebKit 534.24 (branches/chromium/696@86868) V8 3.1.8.16 Agent utilisateur Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/ 534.24 (KHTML, like Gecko) Chrome/11.0.696.77 Safari/534.24 I tr

[Proto-Scripty] Re: ajax.updater - json to fill

2011-06-06 Thread Eric
Hello, This is a little out of topic, but here are few hints: The easiest way to do that is to build a PHP array, and to use JSON_Encode to convert it into a JSON encoded string; You also need to change the content-type of your response to let prototype know it is actually JSON. Simple example: