Ramon Bartl wrote: > Hi all, > > first of all, I'm not a KSS crack and I tried to KSS-ify a Browser > view for the first time! yeah! It is really fun working with KSS, you > guys rock! > > But I'm having a little problem..... > > I tried to insert a <tr><td></td></tr> snippet into a table body with > insertHTMLAsFirstChild. But unfortunately the tags always get > stripped. So the table layout breaks:( > > My code looks like that: > > --------------------------------------------------------------------------------------- > macros = ViewPageTemplateFile("results_macros.pt").macros > wrapper = ViewPageTemplateFile("macro_wrapper.pt") > > @kssaction > def update_live_table(self): > ksscore = self.getCommandSet('core') > > rendered = self.wrapper.render( > viewMacro = self.macros['live-table-row'], > ) > > ksscore.insertHTMLAsFirstChild( > ksscore.getHtmlIdSelector('live-table-body'), > rendered) > --------------------------------------------------------------------------------------- > > ree told me already that the browsers don't allow to do an innerHTML > inside a table, but also told me that there is maybe a workaround from > __gotcha? > > Godefroid?;) do you know how to do the browser-innerHTML-table-dance? >
I have no magic wand for you now ;-) I think we will need to quit using innerHTML and go back to DOM construction. I am afraid that in the meanwhile, you'll need to refresh the full table :-S > Thanks a lot! > > -ramonski -- Godefroid Chapelle (aka __gotcha) http://bubblenet.be _______________________________________________ Kss-devel mailing list Kss-devel@codespeak.net http://codespeak.net/mailman/listinfo/kss-devel