Whee! That worked! Thanks I didn't read the list of events that the new
HTTPRequest responds to.
-deech
On Sun, Jun 14, 2009 at 3:54 PM, Stefan Volbers <[email protected]> wrote:
> Hi Deech,
>
> I have no experience with qx.io2.HttpRequest (didn't even know that it
> is ready for productive use), but from a quick look at the api viewer I
> can see that there is no such "completed" event for qx.io2.HttpRequest.
> Try "load" instead, looks like it's got what you want.
>
> HTH, good luck
> Stefan
>
>
> aditya siram wrote:
> > Hi all,
> > I'm having trouble generating debug code from the following Qooxdoo app:
> > qx.Class.define("library.Application",
> > {
> > extend : qx.application.Standalone,
> >
> > /*
> >
> >
> *****************************************************************************
> > MEMBERS
> >
> >
> *****************************************************************************
> > */
> >
> > members :
> > {
> > /**
> > * This method contains the initial application code and gets called
> > * during startup of the application
> > */
> > main : function()
> > {
> > // Call super class
> > this.base(arguments);
> >
> > < ...more GUI building code ...>
> >
> > // Enable logging in debug variant
> > if (qx.core.Variant.isSet("qx.debug", "on"))
> > {
> > // support native logging capabilities, e.g. Firebug for Firefox
> > qx.log.appender.Native;
> > // support additional cross-browser console. Press F7 to toggle
> > visibility
> > qx.log.appender.Console.init();
> > }
> >
> > var req = new qx.io2.HttpRequest("localhost:3000");
> > req.set({
> > url : '/library',
> > method : 'POST',
> > data : "isbn=" + isbn.getValue() //isbn is a form field
> > });
> >
> > button.addListener("execute", function(e) {
> > req.send();
> > });
> >
> > req.addListener("completed", function(e) {
> > resp = qx.util.Json.parseQx(e.getContent());
> > this.debug("hello world");
> > this.debug(resp.toString());
> > });
> >
> > I am using Firefox 3.0 with Firebug. I am pretty sure that the POST
> > request completes because the Firebug console shows the correct
> > response. However it appears that the "completed" event is not fired
> > because neither "hello world" nor the response JSON message are logged
> > to the Firebug. What am I doing wrong?
> >
> > thanks ..
> > -deech
>
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel