HighDots Forums  

How a child window can read a parents stylesheet ?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss How a child window can read a parents stylesheet ? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Christian Kirsch
 
Posts: n/a

Default Re: How a child window can read a parents stylesheet ? - 08-22-2007 , 02:39 AM






Am 22.08.2007 00:05 schrieb Randell D.:

Quote:
No - this won't work for me either as my child window is dynamically
created and depends entirely on the parent for information... thus...
how can I query the parent opening window, read its CSS and utilise it
within the child window?


Use the DOM methods available for stylesheet access. I'm too lazy now
to look them up, but you can actually access all stylesheets in a
document.

--
Christian


Reply With Quote
  #12  
Old   
Randell D.
 
Posts: n/a

Default Re: How a child window can read a parents stylesheet ? - 08-22-2007 , 05:31 PM






On Aug 22, 9:39 am, Christian Kirsch <c... (AT) bru6 (DOT) de> wrote:
Quote:
Am 22.08.2007 00:05 schrieb Randell D.:
Use the DOM methods available for stylesheet access. I'm too lazy now
to look them up, but you can actually access all stylesheets in a
document.

--
Christian
Thanks - This is exactly what i am trying to do but I have been having
difficulty implementing it. My o'reilly Javascript pocket reference
tells me there is 'Style' object but it works on elements but my
attempts thus far have failed. Can you give me an example - or at
least correct where I'm going wrong. Assume a child window is called
calendar, could I not do something like

calendar.document.backgroundColor=opener.document. backgroundColor;

I tried this and it didn't work though... any hints/direction forward
on this?

thanks!



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.