> > It's a good idea, and probably it will work: I'll make some test, > > but if I remember the innerHTML property > > is not part of the DOM specification, so I'm not sure using it is > > a much better habit than using document.write().
> Yes, it is not part of the specifications. But it is support by every > modern browser I think. It is a bad habit - sure - but if it works, > it would be the simplest solution. The 5th edition of "Javascript - The Definitive Guide" by Flanagan (just published) says (p336): "Although it has never been sanctioned by the W3C as an official part of the DOM, the innerHTML property of HTMLElement nodes is an important and powerful property that is supported by all modern browsers. .... Web browsers are, almost by definition, very good at parsing HTML. It turns out that using innerHTML is a reasonably efficient thing to do, especially when working with large chunks of HTML text to be parsed. Note, however that appending bits of text to the innerHTML property with the += operator is usually not efficient because it requires both a serialization step and a parsing step." It might be the *best* solution :-) Hugh ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
