Re: [qooxdoo-devel] qx.bom.Collection, replacing content in TD

2010-04-20 Thread marbin
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. .. old content another cell old span content old P content Test This is the callback for the testButton _onTestButtonClick : function(e) { var domC

Re: [qooxdoo-devel] qx.bom.Collection, replacing content in TD

2010-04-20 Thread Alexander Steitz
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 , and 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 e

Re: [qooxdoo-devel] qx.bom.Collection, replacing content in TD

2010-04-20 Thread Mattias.Arbin
Thanks, that did it. /Mattias -Original Message- From: Alexander Steitz [mailto:alexander.ste...@1und1.de] Sent: den 20 april 2010 10:26 To: qooxdoo-devel@lists.sourceforge.net Subject: Re: [qooxdoo-devel] qx.bom.Collection, replacing content in TD Hi, On Tuesday April 20 2010 09:42:43

Re: [qooxdoo-devel] qx.bom.Collection, replacing content in TD

2010-04-20 Thread Alexander Steitz
Hi, On Tuesday April 20 2010 09:42:43 marbin wrote: > No, not really. With the snippet above, you would end up replacing the td > element itself. > If you initially have > .. > > old content> > > > you would end up with > > new content > > > I want something similar to the DOM-level "innerHt

Re: [qooxdoo-devel] qx.bom.Collection, replacing content in TD

2010-04-20 Thread marbin
As I mentioned earlier, the empty() method seems to have no effect at all. I have tested it on , and the content inside the element is left unchanged. Is this a bug? -- View this message in context: http://n2.nabble.com/qx-bom-Collection-replacing-content-in-TD-tp4924924p4929946.html Sent fro

Re: [qooxdoo-devel] qx.bom.Collection, replacing content in TD

2010-04-20 Thread marbin
Alexander Steitz wrote: > > > --snip-- > var domCollection = qx.bom.Collection.create(this.getDocument()); > var td = domCollection.find("#myTD"); > td.replaceWith("new content"); > --snip-- > > Is this the method you searched for? > > cheers, > Alex > No, not really. With the snippet abov

Re: [qooxdoo-devel] qx.bom.Collection, replacing content in TD

2010-04-19 Thread Alexander Steitz
Hi, On Monday April 19 2010 14:45:38 marbin wrote: > I am having problems changing the content of a TD element using the > qx.bom.Collection API. > I have code doing something like below in a component extending > qx.ui.embed.Iframe: > > var domCollection = qx.bom.Collection.create(this.getDocume

[qooxdoo-devel] qx.bom.Collection, replacing content in TD

2010-04-19 Thread marbin
I am having problems changing the content of a TD element using the qx.bom.Collection API. I have code doing something like below in a component extending qx.ui.embed.Iframe: var domCollection = qx.bom.Collection.create(this.getDocument()); var td = domCollection.find("#myTD"); td.empty(); td.app