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?

Thanks a lot!

-ramonski

_______________________________________________
Kss-devel mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kss-devel

Reply via email to