How to use the same .css file of the parent page in the html page called through IFRAME. I am using style switcher to change the .CSS files. While changing the style sheet, it does so in the parent page but not in the iframe page.Sounds like you need a customized stylesheet switcher.
Why Frames Are Bad (<!-- m --><a class="postlink" href="http://karlcore.com/articles/article.php?id=2">http://karlcore.com/articles/article.php?id=2</a><!-- m -->)
<!-- m --><a class="postlink" href="http://apptools.com/rants/framesevil.php">http://apptools.com/rants/framesevil.php</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.456bereastreet.com/archive/200411/who_framed_the_web_frames_and_usability/">http://www.456bereastreet.com/archive/2 ... usability/</a><!-- m -->
Why Frames Suck (Most of the Time)(1996) (<!-- m --><a class="postlink" href="http://www.useit.com/alertbox/9612.html">http://www.useit.com/alertbox/9612.html</a><!-- m -->)
What's wrong with frames? (<!-- m --><a class="postlink" href="http://www.htmlhelp.com/design/frames/whatswrong.html">http://www.htmlhelp.com/design/frames/whatswrong.html</a><!-- m -->)Have you tried removing any external sheet references from the included pages? My experience has been that the iframe doc will be styled by the container's styles if it doesn't declare styles of its own.Got It. Using the following code to get the css file. Working fine so far.
<script language="JavaScript" TYPE="text/javascript" src=http://www.webdeveloper.com/forum/archive/index.php/"styleswitcher.js"></script>
<script language="JavaScript">
<!--
document.write("<LINK REL=STYLESHEET HREF=http://www.webdeveloper.com/forum/archive/index.php/\"" + selectedCSS + "\" TYPE=\"text/css\">");
//-->
</script>
<noscript><link rel="stylesheet" type="text/css" href=http://www.webdeveloper.com/forum/archive/index.php/"xyz.css"></noscript>
Why Frames Are Bad (<!-- m --><a class="postlink" href="http://karlcore.com/articles/article.php?id=2">http://karlcore.com/articles/article.php?id=2</a><!-- m -->)
<!-- m --><a class="postlink" href="http://apptools.com/rants/framesevil.php">http://apptools.com/rants/framesevil.php</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.456bereastreet.com/archive/200411/who_framed_the_web_frames_and_usability/">http://www.456bereastreet.com/archive/2 ... usability/</a><!-- m -->
Why Frames Suck (Most of the Time)(1996) (<!-- m --><a class="postlink" href="http://www.useit.com/alertbox/9612.html">http://www.useit.com/alertbox/9612.html</a><!-- m -->)
What's wrong with frames? (<!-- m --><a class="postlink" href="http://www.htmlhelp.com/design/frames/whatswrong.html">http://www.htmlhelp.com/design/frames/whatswrong.html</a><!-- m -->)Have you tried removing any external sheet references from the included pages? My experience has been that the iframe doc will be styled by the container's styles if it doesn't declare styles of its own.Got It. Using the following code to get the css file. Working fine so far.
<script language="JavaScript" TYPE="text/javascript" src=http://www.webdeveloper.com/forum/archive/index.php/"styleswitcher.js"></script>
<script language="JavaScript">
<!--
document.write("<LINK REL=STYLESHEET HREF=http://www.webdeveloper.com/forum/archive/index.php/\"" + selectedCSS + "\" TYPE=\"text/css\">");
//-->
</script>
<noscript><link rel="stylesheet" type="text/css" href=http://www.webdeveloper.com/forum/archive/index.php/"xyz.css"></noscript>