PDA

View Full Version : Which way do I go?


ScottInTexas
12-01-2002, 02:58 PM
You may have seen previous posts from me regarding writing to iframes. Well the overall structure of the page is not working out so I want to try a different tack. I want to use one large table (which really makes the layout easy) and in a couple of places I have to dynamically add a table to a current cell.

I can't seem to get the syntax down to add the new table. I found an object model on the web and printed it so I could figure out the address of each element on my page, but this can't be complete. The object starts with Window and branches out from there. There are no tables, cells, iframes. From the document object there are layer, Link, Image, Area...Form a total of 8.

So where can I find the documentation to do things like

thiscell.document.write(somestuff).

and would this be considered DOM programming?

I would like to find an object model and methods available for each somewhere that I can bookmark.


Thanks for your patience,

beetle
12-01-2002, 06:10 PM
Well, you can't use

someNode.document.write()

to add content to any element. document.write() only writes to the document, and that's it. To dynamically add content to a page you need things like innerHTML, the DOM node-creation process (document.createElement => node.appendChild) and stuff like that. You can start learning about this stuff by following the MSDN, Gecko, and xBrowser links in my sig. Also, check this link to get you started

http://www.scottandrew.com/weblog/articles/dom_1