On Fri, Jan 16, 2009 at 11:47 AM, Mustafa Sak <m....@ims24-net.de> wrote:
> Hi Helder,
>
> you are right, i am using an object, but your solution gives me an array
> like this:
>
> Array()
> [0]=>"value"
> [1]=>"value"
>
> but i need some array like that
>
> Array()
> [key1] => "value"
> [key2]=> "value"
>
PHP provides associative arrays (arrays where the "index" is a string rather
than a number). Javascript, although it seems to work to use arrays that
way, does not technically support associative arrays and various things
break if you try to do it. You can simulate an associative array by doing
what you were doing initially, using a Javascript object. The JSON-RPC
server should accept a JSON object and convert it to a PHP associative array
exactly as you're expecting.
Derrell
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel