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" Thats why am i asking. ________________________________
Von: Helder Magalhães [mailto:helder.magalh...@gmail.com] Gesendet: Fr 16.01.2009 17:45 An: qooxdoo-devel@lists.sourceforge.net Betreff: Re: [qooxdoo-devel] More effitient Method to send Arrays to RPC PHP var logindata = { bnt_benutzerlogin : bnt_benutzerlogin.getValue(), bnt_passwort : bnt_passwort.getValue() }; Note that this is not an array, you are using an object. To use an array instead you should do something like: var logindata = [bnt_benutzerlogin.getValue(), bnt_passwort.getValue()]; Mustafa Sak wrote: > > this.loginantwort = this.rpc.callSync("login", logindata); > Note that using synchronous calls should be avoided whenever possible: they will likely block the browser [1] and make the application look like hanged, specially when using a slower network. Consider using asynchronous calls instead! ;-) Hope this helps, Helder Magalhães [1] http://www.oreillynet.com/xml/blog/2007/01/do_sync_calls_freeze_browsers.html -- View this message in context: http://www.nabble.com/More-effitient-Method-to-send-Arrays-to-RPC-PHP-tp21501562p21503386.html Sent from the qooxdoo-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------------ 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
<<winmail.dat>>
------------------------------------------------------------------------------ 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