Hi, I just wrote: echo '[[ "Data1_1", "Data1_2", "Data1_3", "Data1_4" ], [ "Data2_1", "Data2_2", "Data2_3", "Data2_4" ] ]'; For testing purposes in the php-file.
Unfortunately i got this error message: TypeError: str.charAt is not a function BR Tim -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Derrell Lipman Gesendet: Mittwoch, 6. Februar 2008 14:54 An: qooxdoo Development Betreff: Re: [qooxdoo-devel] JSON and mysql 2008/2/6 Wieringa Timotheus <[EMAIL PROTECTED]>: > > > Hello again, > > I just got this stuff to work - a little bit! > > Looking at the Demo Browser examples i thought i must insert > > rowData = []; > rowData.push(content); > tableModel.setData(rowData); > > to get the data. > > And yes it works. But only for one row! > When i got more than one row out of my database the response is like > ["Data1_1", "Data1_2", > "Data1_3","Data1_4","Data2_1","Data2_2","Data2_3","Data2_4","Data3_1", > ...] > > But only the first row is displayed in the table. The rowData array is an array of ROWS. Each row is itself an array of COLUMN data. Therefore, to get two rows of data, you'd need: [ [ "Data1_1", "Data1_2", "Data1_3", "Data1_4" ], [ "Data2_1", "Data2_2", "Data2_3", "Data2_4" ] ] Given your scenario, it sounds like it'd be easiest to have the server return a JSON result that already contains an array of arrays like this. Cheers, Derrell ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel -- HAWE Hydraulik GmbH & Co. KG Streitfeldstraße 25 · D-81673 München Homepage: http://www.hawe.de Tel: (089) 379100-0 · Fax: (089) 379100-1269 Kommanditgesellschaft Sitz München Registergericht München HRA 8934 Persönlich haftende Gesellschafterin: Heilmeier & Weinlein Verwaltungs-GmbH Sitz München Registergericht München, HRB 5306 Geschäftsführer: Karl Haeusgen, Martin Heusser, Wolfgang Sochor ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel