Hi Martin, Martin wrote: > To thank you, may be I have some improvement for rpc.js :) > > in this code: when response is null (when the reply is not XML data, i.e. > some server error or bad call, it happened to me when I was restarting > webserver). Then id = response["id"] raises error, because response is > null, so may be code: I'm wondering why you're running into this problem. Normally the response has a value if the "completed" event is fired and the listener is called. In cases of a server error or a bad call the "failed" listener should be called. And if you're request is fine but returns no data, then probably the server backend has to be fixed. So there should be no need to check the response object against "null", I guess.
Just my 2cents, Alex ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
