Well, I can at least provide some snippets.
This is a part of the HTML I use as the source of my qx.ui.embed.Iframe
component.
..
<br/>
<table>
<tbody id="testTbody">
<tr >
<td id="testTD" style="border: 1px solid red;">old content</td>
<td style="border: 1px solid red;">another cell</td>
</tr>
</tbody>
</table>
<br/>
<span id="testSpan">old span content</span>
<br/>
<p id="testP">old P content</p>
<button id="testButton">Test</button>
This is the callback for the testButton
_onTestButtonClick : function(e) {
var domCollection = qx.bom.Collection.create(this.getDocument());
var td = domCollection.find("#testTD");
td.empty();
var span = domCollection.find("#testSpan");
span.empty();
var p = domCollection.find("#testP");
p.empty();
}
Using Qooxdoo 1.0.1 in Firefox 3.6
From: Alexander Steitz [via qooxdoo]
[mailto:[email protected]]
Sent: den 20 april 2010 10:49
To: Arbin Mattias
Subject: Re: qx.bom.Collection, replacing content in TD
On Tuesday April 20 2010 10:05:55 marbin wrote:
> As I mentioned earlier, the empty() method seems to have no effect at all.
> I have tested it on , <p> and <td> the content inside the element is left
> unchanged.
> Is this a bug?
I've just tested it and it worked fine for me. Can you please provide an
example or is it the one you used in your first mail?
cheers,
Alex
------------------------------------------------------------------------------
Download Intel(r) Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[hidden
email]<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4930081&i=0>
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
________________________________
View message @
http://n2.nabble.com/qx-bom-Collection-replacing-content-in-TD-tp4924924p4930081.html
To unsubscribe from Re: qx.bom.Collection, replacing content in TD, click here<
(link removed) >.
--
View this message in context:
http://n2.nabble.com/qx-bom-Collection-replacing-content-in-TD-tp4924924p4930097.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel