Hello,

in my Application I'm using a Table with a Remote Table Model. It works
fine. I'm trying to add a Remote Column Model. This works also fine - in
FireFox, Opera, Safari but not in IE. And this is my Problem.

Code:
----- Gui.js [pim.Gui]
[...]
tableModel = new pim.ui.table.model.Remote();
tableModel.setUrl( '/Index/' );
tableModel.setPtype( type );
tableModel.loadColumnModel();

table = new qx.ui.table.Table( tableModel );
[...]
-----

----- Remote.js [pim.ui.table.model.Remote]
[...]
loadColumnModel : function()
{
        var req = new qx.io.remote.Request(this._requestUrl + 
"remoteColumnModel/",
"GET", "text/plain");
        req.setAsynchronous(false);

        req.addEventListener("completed", function(e)
        {
                var content = e.getData().getContent();
                var data = qx.io.Json.parseQx(content);

                this.setColumns( data['columnNames'], data['columnIds'] );

                for (var i=0; i<data['columnIds'].length; ++i) {
                        this.setColumnSortable(i, true);
                }
        },
        this);

        // Type
        req.setParameter("ptype", this._ptype);

        req.send();
},
[...]
-----

In IE the Columns are unknown outside the Event Listener and I don't know
how to fix this. Data is getting loaded but without Columns IE doesn't show
anything. There is no error Message and I have no idea any more. Changing
the "this" for the Event Listener makes setColumns inaccessible.

Hope for Your suggestions,
  Christian
-- 
View this message in context: 
http://www.nabble.com/%22this%22-within-EventListener-and-IE--Remote-Table-Model--setting-Columns---v0.7--tf3913849.html#a11096847
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to