Also make sure you exit; after the print json_ecode() so there is not
additional output that will corrupt your JSON string
Jason
On Jun 6, 6:15 am, Eric lefauv...@gmail.com wrote:
Hello,
This is a little out of topic, but here are few hints:
The easiest way to do that is to build a PHP
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
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
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:
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