Hi Florian,
I have played a bit and found a solution for you.
Cheers,
Chris
<<< code snipped >>>
<table id="myTable">
<thead>
<th></th>
<th>Title</th>
<th>Date</th>
</thead>
<tbody id="myTableBody">
</tbody>
</table>
<script type="text/javascript" charset="utf-8">
// register callback
qx.bom.Lifecycle.onReady(onReady, window);
// executed when the application/scripts are loaded
function onReady()
{
// fill table
var itemCount = 10;
var table = qx.bom.Collection.query("#myTableBody");
for (var i = 0; i < itemCount; i++)
{
table.append("<tr><td name=\"pos\">"+(i+1)+"</td><td
name=\"title\"></td><td name=\"date\"></td></tr>");
}
}
</script>
Florian Giesen schrieb:
> Hello List,
>
> actually I am playing around with the low-level API, especially with
> qx.bom.Collection and qx.bom.Selector.
> My goal is to fill an existing table #myTable with additional rows.
> With FF3 everything is fine, but IE7 does not show any of the
> dynamically generated rows. Has anybody an idea, what is going wrong?
> A hint may be, that the IE Developer toolbar says, that the rowIndex
> of all generated rows is -1.
>
> Regards, Florian
>
> Code excerpt:
>
> <table id="myTable">
> <tr>
> <th></th>
> <th>Title</th>
> <th>Date</th>
> </tr>
> </table>
> <script type="text/javascript" charset="utf-8">
> // register callback
> qx.bom.Lifecycle.onReady(onReady, window);
>
> // executed when the application/scripts are loaded
> function onReady()
> {
> // fill table
> var itemCount = 10;
> var table = qx.bom.Collection.query("#myTable");
>
> for (var i = 0; i < itemCount; i++)
> {
> table.append("<tr><td name=\"pos\">"+(i+1)+"</td><td
> name=\"title\"></td><td name=\"date\"></td></tr>");
> }
> }
> </script>
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
--
Christian Schmidt
Software Engineer
Core Development :: Web Technologies
1&1 Internet AG
Ernst-Frey-Str. 9
76135 Karlsruhe, Germany
http://www.1und1.de
Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas
Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver
Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel