Do you have a question? Post it now! No Registration Necessary. Now with pictures!
November 22, 2009, 6:10 pm
rate this thread
I don't have much hope of an open-sesame answer to this question, but
here goes anyway.
Imagine I have a page arranged in an ordinary way:
<style ...> styles </styles>
<div id="container"> // getElementByID("container").parentNode ==
[bunch of complicated data]
</div> // id="container"
I replace the table id="data" with new stuff when the user asks me to,
and that will work just fine, I do believe (it's working a little bit
now and as I say I'm a believer).
The "old" table depends heavily (maybe too much) upon the <style>
section in the <head>. But when the table of new, refreshed data shows
up, of course it's completely unstyled. I haven't found a way to get
the browser to apply styles from that section or from an external
stylesheet to the new table.
Has anybody any ideas about how I can get the new, AJAX-downloaded
stuff to acquire some style? Short of styling every single <th> and
<td> and increasing the ratio of data / style to some number even more
gigantic than it is now.
I do see ( http://www.w3.org/TR/html4/present/styles.html#h-14.2.1 )
that I can put out an HTTP header:
but I don't think that helps the browser find the styles I want.
Thank you, everyone.
- » how to make email signature compatible with Microsoft Outlook
- — Previous thread in » HTML Authoring Forum