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

2011-06-07 Thread Matt Petrovic
Updater expects the return result to be (X)HTML. It drops the response directly into the container as is. You should be returning an HTML string, or using Ajax.Request to get the JSON, convert it into HTML and dropping it in place. If you want to be hackish about it, you do your converting in

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

2011-06-07 Thread Phil Petree
Jason, I'm getting everything back from the php script just fine but I can not get it into the select at all... I posted a new thread just a bit ago... what I find is that if I use an onclick event to call my addOption function with static data it works fine but if I call my function with static

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

2011-06-06 Thread Bertilo Wennergren
Eric lefauv...@gmail.com 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