Josef,

without seeing your complete code, I have the following suspicion:

You use an rpc async call to get the data from your php-server?

If so, you have to specify an async handler in the rpc call and INSIDE this
async handler (which will be called once the data has been transmitted from
the server to the client) you can then set the table data.

Cheers,
Fritz

P.S.: In case you are trying to use a synchronous rpc call: you shouldn't,
      as it blocks the browser.

On Mon, 31 Jan 2011, josefkoller wrote:


Hi again,

If I never got an event with myReq function (e is undefined) I changed this
function as follow:

k =0;
function myReq (e) {
 for (var j=0; j<30000; j++){
   k++;                                      //<----- nothing to do only
wait for the e
   if (e!=undefined)break
 }
 rowData= [];
 var result = e.getContent();
 var booltype;
 for(var i in result){
   res1 = result[i];
   if(res1.STWANDERSTAND == '0') {booltype = false;} else {booltype =
true;} //boolean tableview
   rowData.push([ res1.STAND_ID, res1.STNAME, res1.STTRACHT, booltype ]);
 }
 table.getTableModel().setData(rowData);
 //alert('Zugriffe: '+ k+'Länge: '+ result.length);
 ...

I give a for loop construct on top (nothing else to do as to loop until the
e is defined).
So I get the datas from my php site. In most of the cases.
The for construct loops ever 1 time (controlled with an alert) before the e
is defined.

Do you know why?

So I get my datas from my php site in most of the cases! But if I start the browser new I get no alert box and no datas. Only if I
refresh the browser with F5 I get in the alertbox the hint to 1 loop and the
length of the array.

I get this behavior in all browsers I tested(FF, Chrome, IE and Safari.

Than in chrome I have wrong table rows. In the other browsers I get 7 rows
(length of the array). In crome I get 14 rows. The first 7 are the array
entries and than 7 empty rows. Only in the column with the boolean
defination I get checkboxes (false marked).

This looks not good. In the alertbox I get the correct length of the
array(7).

Do you know why I get in in chrome the double rows?

Thanks again

Josef
--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/I-m-frustrated-tp5975196p5977537.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

--
Oetiker+Partner AG              tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch
------------------------------------------------------------------------------
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