I'm porting the start of my little app to 0.8-beta1, on the suggestion
of this list to take advantage of the new layouting system.

Problems:
*this.debug() no longer works, it used to put messages in the Firebug
console. I know the code has been executed because Firebug does show a
couple of requests being completed. I tried turning off Firebug to see
if the popup would come up instead, but that didn't work.

*Firefox locks up and does one of those "Unresponsive Script" warnings
after a few seconds.

Any general ideas of how one would go about fixing such an issue? The
sample apps work so I'm pretty certain its my code. :)

Thanks,
Ian

The entire application code, I also use a XSPF library:

qx.Class.define("webrok.Application",
{
  extend : qx.application.Standalone,

  members :
  {
    main : function()
    {
        this.base(arguments);
        this.debug("hello world");
        var layout = new qx.ui.layout.VBox();
        var container = new qx.ui.container.Composite(layout);
 /*       dockLayout.setLocation(0, 0);
        dockLayout.setRight(0);
        dockLayout.setBottom(0);
        dockLayout.setBackgroundColor("white"); */

        var toolbar = new qx.ui.toolbar.ToolBar;
        var prevBtn = new qx.ui.toolbar.Button( "Previous",
"icon/16/actions/media-skip-backward.png" );
        var playBtn =  new qx.ui.toolbar.Button("Play",
"icon/16/actions/media-playback-start.png" );
        toolbar.add( prevBtn );
        toolbar.add( playBtn );
        container.add( toolbar );

        var playlistModel = new qx.ui.table.model.Simple();
        playlistModel.setColumns([ "#", "Title", "Artist", "Album", "Length" ]);

        var refreshPlaylist = new
qx.io.remote.Request("/ajax/savePlaylist", "GET", "text/plain");
        refreshPlaylist.addListener("completed", function( response ) {
            this.debug( "hello" +  response.getStatusCode() );
            if( response.getStatusCode() != 200 )
            {
                 this.error( "statuscode was: + " + response.getStatusCode() );
                return;
            }
            var playlist = new qx.io.remote.Request("/current.xspf",
"GET", "text/plain");
            playlist.addListener("completed", function( resp ) {
                var dom = XSPF.XMLfromString( resp.getContent() );
                var jspf = XSPF.toJSPF(dom);
                this.debug( jspf );
                this.debug( "the length:" + jspf.playlist.track.length );
                var rows = new Array();
                var tracks = jspf.playlist.track;
                for( var it = 0; it < tracks.length; it++ )
                {
                    var row = [tracks[it].trackNum, tracks[it].title,
tracks[it].creator, tracks[it].album, tracks[it].duration ]
                    rows.push( row );
                    this.debug( "pushing " + row );
                }
                playlistModel.addRows( rows );
            });
            playlist.send();
        });
        refreshPlaylist.send();

        var table = new qx.ui.table.Table(playlistModel);
        table.set(
        {
        //  width   : "100%"
          height  : "100%"
        });
        table.addListener( "cellDblclick", function( cellEvent ) {
            var req = new qx.io.remote.Request("/ajax/play?row=" +
cellEvent.getRow(), "GET", "text/plain");
            req.send();
        });
        container.add( table );
        this.getRoot().add(container, {edge:0});
    }
  }
});

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to