This solution is even Better than set the callbackKey, becouse
it execute the default "onSuccess" event.

It will be good to explain this in mootools documentation wich explain
a lot about client side, but nothing about server side.

Thanks again for explanaitions guys, you make the community stronger.

On 21 ene, 10:17, Tim Wienk <timwi...@gmail.com> wrote:
> Indeed.
>
> I recommend just leaving callbackKey to its default (callback), and
> using something like:
>
> <?php
>     $something = array(
>         'error' => '0',
>         'disponible' => 0
>     );
>     $json_string = json_encode($something);
>
>     echo $_GET['callback'], '(', $json_string, ')';
> ?>

Reply via email to