Andreas Junghans <[EMAIL PROTECTED]> writes: >> Ultimately, it would be nice to have a generic "form" API that allows >> generating forms using qooxdoo widgets and having the submission of the >> form data be automated (or at least semi-automated). That's a bit more of >> a project than is required just to fix this bug. :-) Currently, if one >> wants to use XmlHttpTransport, one must provide the data blob to be sent in >> its entirety. > > It shouldn't be hard to change that. As long as no file upload is involved > (which isn't possible with XMLHttpRequest anyway), the encoding to use is > "application/x-www-form-urlencoded". Basically, the body looks just like the > parameters in a GET request: > > param1=value1¶m2=value2
The low-level transport code will then need to depend on the user setting the correct content type correctly. Otherwise, it has no way to know if the content is in that format, or for example the case of JSON-RPC, an entirely different format. It starts becoming a lot of onus on the user to set things up correctly, with no easy checking that can be done to ensure that they did. We'd likely instead want a separate class, a class which is a user of qx.io.remote.Request similar to what's in Rpc.js, to isolate the user from that headache. As long as there's to be a separate class to provide the interface, it should probably be written to interface with generic widgets so that the form could be built (semi-)automatically... Now what to do about Tables where the data is in a model rather than stored in the widget? It'll need a data model conversion capability... Derrell ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
