"Jhonny Everson" <[EMAIL PROTECTED]> writes:

> I'm trying to connect qooxdoo with php ( not PHP QxBuilder). I'm using
> qx.io.remote.RemoteRequest and generating a XML response. I got it, but how
> can i parse the XML in qooxdoo? I found no examples or help about this.
> please help me. Or someone have a better a idea on communicating to php?

I can't answer your question directly because AFAIK, there's no generic XML
parser for use with qooxdoo.

Instead, you can try one of:

- use JSON-RPC to issue remote procedure calls to PHP from your qooxdoo
  application.  See the examples in frontend/demo/source/html/test/RPC_*.html
  and the file backend/php/README.CONFIGURE.

- if you don't want to issue remote function calls, you can still use the JSON
  facility.  You'll find the JSON functions in backend/php/services/JSON.phps
  and specifically, you'll use the function encode() to convert your PHP
  variable (object) into JSON for transmission to the qooxdoo application.
  Once received, your qooxdoo application just eval()s the JSON reply; no
  parsing necessary.

JSON is a mechanism for stringifying object data into a javascript literal
form.  The result is equivalent to stringifying object data into XML, but is
in a form that's much more useful for a javascript application, and is
becoming more and more popular as a replacement for XML.

Cheers,

Derrell

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to