Hi Mustafa,

nice to see you again. There is not a lot of code inside my file. Now I have
structered the lines in your order:

// Our code will come here

// table
var tableModel = this._tableModel = new qx.ui.table.model.Simple();
tableModel.setColumns([ "ID", "Standortname", "Standortbeschreibung",
"Wanderstand" ]);
// table
var table = this.table = new qx.ui.table.Table(tableModel);
table.set({width: 600,height: 400,decorator : null});
var req = this.req = new qx.io.remote.Request("test.php","POST",
"application/json");

function myReq (e) {
rowData= [];
var result = e.getContent();
for(var i in result){
res1 = result[i];
if(res1.STWANDERSTAND == '0') {booltype = false;} else {booltype = true;} 
rowData.push([ res1.STAND_ID, res1.STNAME, res1.STTRACHT, booltype ]);
}
table.getTableModel().setData(rowData);
return rowData;                         
}
                        
req.addListener("completed", myReq);
req.send();
                        
        
var staWin = new qx.ui.window.Window("Imkerei Verwaltung",
"resource/icon/tango/16/places/folder.png"); 
staWin.setLayout(new qx.ui.layout.VBox()); 
....
and some windows definations and the adds (windows to root and table to
window).

And it looks better. Only one time I got a empty table. The last tests were
good after empty the browsercache and restart the browser I got the data
result.

Many, many thanks.

But now I get in the IE 14 rows, too. See my post before. Now in chrome and
in IE. In the other browsers (FF, Safari) the result is correct (7 rows).

Do you have any idea whar's that?

My boolean line: I have mySQL as DB. In mySQL there is no boolean type. So I
have defined this field as smallint. 0 means false 1 means true.

Do you know another possibility to define this "boolean-field" qooxdoolike?

And by the way:
My next tests are sending datas from qooxdoo to my php site.
Can I do this with the same remote.request I get datas from my php site?
Is req.setData('Test');????????? the right one?
What necessary in php site? 
json_decode($_POST ????????);

Is there anywhere an example???

Thanks a lot

Josef
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/I-m-frustrated-tp5975196p5978279.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to