<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1022346" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1022346</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-fit-height-iframe-its-content#comment-1137901</link>
    <description> &lt;p&gt;Heh, well done. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; But pardon me, I don&#039;t see what it achieves... like I said earlier, the frames simulate a normal page. Is it just the benefit of editing one nav that you wanted? &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/confused.png&quot; title=&quot;Confused&quot; alt=&quot;Confused&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Yep, I use GoDaddy for the one domain I have. I highly recommend their domain reg service (I don&#039;t use their hosting). You might wanna start a topic down in Hosting and Domain, though. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 15 Sep 2003 20:29:16 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1137901 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-fit-height-iframe-its-content#comment-1137900</link>
    <description> &lt;p&gt;The reason why the site works is cause I managed to solve it! (And it works in both IE6 and NN7!)&lt;/p&gt;
&lt;p&gt;Just view the source if you wanna know how. Thanks for your help!&lt;/p&gt;
&lt;p&gt;Btw, do you have any experience with GoDaddy? I&#039;m going to register &lt;a href=&quot;http://www.enselicscorner.com&quot; class=&quot;bb-url&quot;&gt;enselicscorner.com&lt;/a&gt; some day so I&#039;m scouting for a host.&lt;/p&gt;
 </description>
     <pubDate>Mon, 15 Sep 2003 19:54:41 +0000</pubDate>
 <dc:creator>Enselic</dc:creator>
 <guid isPermaLink="false">comment 1137900 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-fit-height-iframe-its-content#comment-1137864</link>
    <description> &lt;p&gt;Lemme just check again, you want the frame &quot;main&quot; to resize to match its contents? If that happens, you&#039;ll still get a scrollbar on the main frame, meaning you&#039;d effectively be simulating a perfectly normal un-framed page. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/confused.png&quot; title=&quot;Confused&quot; alt=&quot;Confused&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;What you have on enselic.tk appears to do the above -- is that what you want?&lt;/p&gt;
&lt;p&gt;If you&#039;re not trying to &quot;fix&quot; the menu, then I&#039;m guessing you just want to have one menu file to have to update to make changes? Look into SSI or PHP includes to do just that, but more effectively. Frames are terribly unkind on my mouse scroll button. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I hope I&#039;m seeing this right...&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: Please don&#039;t give up on me!&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Not to worry, I&#039;m not about to that (just yet). &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/tongue.png&quot; title=&quot;Sticking out tongue&quot; alt=&quot;Sticking out tongue&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 15 Sep 2003 07:18:09 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1137864 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-fit-height-iframe-its-content#comment-1137839</link>
    <description> &lt;p&gt;I changed it to:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;amp;lt;script language=&amp;quot;JavaScript&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;function setIframe( html_document )&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; frames[&amp;#039;main&amp;#039;].location.href = html_document;&lt;br /&gt;&amp;nbsp; setTimeout( &amp;quot;sizeFrame()&amp;quot;, 1000 );&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function sizeFrame()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; document.getElementById(&amp;#039;main&amp;#039;).style.height = frames[&amp;#039;main&amp;#039;].document.body.offsetHeight;&lt;br /&gt;}&lt;br /&gt;//--&amp;gt;&lt;br /&gt;&amp;amp;lt;/script&amp;amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;I changed it to 1000 to be safe, but it still didn&#039;t work.&lt;/p&gt;
&lt;p&gt;Both IE and Firebird and Netscape makes the src-change correctly.&lt;/p&gt;
&lt;p&gt;This is how my doctype is;&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;!DOCTYPE HTML PUBLIC &amp;quot;-//W3C//DTD HTML 4.01 Transitional//EN&amp;quot;&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;It&#039;s driving me nuts. Please don&#039;t give up on me! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the help so far.&lt;/p&gt;
 </description>
     <pubDate>Sun, 14 Sep 2003 13:43:41 +0000</pubDate>
 <dc:creator>Enselic</dc:creator>
 <guid isPermaLink="false">comment 1137839 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-fit-height-iframe-its-content#comment-1137838</link>
    <description> &lt;p&gt;Change&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;amp;lt;script language=&amp;quot;JavaScript&amp;quot; type=&amp;quot;text/JavaScript&amp;quot;&amp;amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;function setIframe( html_document )&lt;br /&gt;{&lt;br /&gt;	document.getElementById( &amp;#039;main&amp;#039; ).src = html_document;&lt;br /&gt;	document.getElementById( &amp;#039;main&amp;#039; ).style.height = document.all( &amp;#039;main&amp;#039; ).body.offsetHeight;&lt;br /&gt;}&lt;br /&gt;//--&amp;gt;&lt;br /&gt;&amp;amp;lt;/script&amp;amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
to&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;amp;lt;script language=&amp;quot;JavaScript&amp;quot; type=&amp;quot;text/JavaScript&amp;quot;&amp;amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;function setIframe(html_document)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; frames[&amp;#039;main&amp;#039;].location.href = html_document;&lt;br /&gt;&amp;nbsp; setTimeout(&amp;quot;100&amp;quot;,&amp;quot;sizeFrame()&amp;quot;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function sizeFrame() {&lt;br /&gt;&amp;nbsp; document.getElementById(&amp;#039;main&amp;#039;).style.height = frames[&amp;#039;main&amp;#039;].document.body.offsetHeight;&lt;br /&gt;}&lt;br /&gt;//--&amp;gt;&lt;br /&gt;&amp;amp;lt;/script&amp;amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
It&#039;s ugly. I don&#039;t like it. I still recommend you look into other ways of fixing your menu, if at all that&#039;s necessary. But this should work...&lt;/p&gt;
&lt;p&gt;As for doctype, read these two docs:&lt;br /&gt;
&lt;a href=&quot;http://htmlhelp.com/tools/validator/doctype.html&quot; class=&quot;bb-url&quot;&gt;http://htmlhelp.com/tools/validator/doctype.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.w3.org/QA/2002/04/valid-dtd-list.html&quot; class=&quot;bb-url&quot;&gt;http://www.w3.org/QA/2002/04/valid-dtd-list.html&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 14 Sep 2003 12:52:31 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1137838 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-fit-height-iframe-its-content#comment-1137837</link>
    <description> &lt;p&gt;ofcourse: &lt;a href=&quot;http://www.enselic.tk&quot; class=&quot;bb-url&quot;&gt;www.enselic.tk&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I guess I have not declared doctype... Is that hard?&lt;/p&gt;
 </description>
     <pubDate>Sun, 14 Sep 2003 12:19:31 +0000</pubDate>
 <dc:creator>Enselic</dc:creator>
 <guid isPermaLink="false">comment 1137837 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-fit-height-iframe-its-content#comment-1137836</link>
    <description> &lt;p&gt;Do you have a page online that I can look at? &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Something like that should be possible. I haven&#039;t tried accessing offsetHeight from outside the frame...&lt;/p&gt;
&lt;p&gt;Anyway, avoid document.all (this is more MSIE code). Use document.getElementById() instead, which is the W3C recommended standard.&lt;/p&gt;
&lt;p&gt;document.body.offsetHeight should work in IE6 if a doctype is declared.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 14 Sep 2003 12:04:28 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1137836 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-fit-height-iframe-its-content#comment-1137835</link>
    <description> &lt;p&gt;Wouldn&#039;t it be possible to only in the menu.htm have this script:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;amp;lt;script language=&amp;quot;JavaScript&amp;quot; type=&amp;quot;text/JavaScript&amp;quot;&amp;amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;function setIframe( html_document )&lt;br /&gt;{&lt;br /&gt;	document.all( &amp;#039;main&amp;#039; ).src = html_document;&lt;br /&gt;	document.all( &amp;#039;main&amp;#039; ).style.height = document.all( &amp;#039;main&amp;#039; ).body.offsetHeight;&lt;br /&gt;}&lt;br /&gt;//--&amp;gt;&lt;br /&gt;&amp;amp;lt;/script&amp;amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
And then to call the func:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;a href=&amp;quot;javascript:setIframe( &amp;#039;downloads.htm&amp;#039; )&amp;quot;&amp;gt;Downloads&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;This won&#039;t work in IE6 atleast. Isn&#039;t this OK?&lt;/p&gt;
 </description>
     <pubDate>Sun, 14 Sep 2003 10:59:57 +0000</pubDate>
 <dc:creator>Enselic</dc:creator>
 <guid isPermaLink="false">comment 1137835 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-fit-height-iframe-its-content#comment-1137828</link>
    <description> &lt;p&gt;From &lt;a href=&quot;http://www.w3.org/TR/DOM-Level-2-Core/Overview.html#contents&quot; class=&quot;bb-url&quot;&gt;W3 DOM Core&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.w3.org/TR/DOM-Level-2-Core/ecma-script-binding.html&quot; class=&quot;bb-url&quot;&gt;ECMAScript language binding&lt;/a&gt; contains ECMAScript (Javascript) methods/functions.&lt;/p&gt;
&lt;p&gt;A more detailed look is in the &lt;a href=&quot;http://www.w3.org/TR/DOM-Level-2-Core/core.html&quot; class=&quot;bb-url&quot;&gt;DOM level 2 specification&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.xs4all.nl/~ppk/js&quot; class=&quot;bb-url&quot;&gt;http://www.xs4all.nl/~ppk/js&lt;/a&gt; is a great reference site.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.webmaster.ee/javascript/js.html&quot; class=&quot;bb-url&quot;&gt;http://www.webmaster.ee/javascript/js.html&lt;/a&gt;&lt;br /&gt;
I like this one too, but it helps if you know know a bit of Russian. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;--------------&lt;/p&gt;
&lt;p&gt;As for your script, try this:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;!-- this goes in the page containing the iframe --&amp;gt;&lt;br /&gt;&amp;amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;amp;gt;&lt;br /&gt;function setFrameHeight(newHeight) {&lt;br /&gt;&amp;nbsp; document.getElementById(&amp;quot;main&amp;quot;).style.height=newHeight;&lt;br /&gt;}&lt;br /&gt;&amp;amp;lt;/script&amp;amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!-- this goes in the page within the iframe --&amp;gt;&lt;br /&gt;&amp;lt;body onload=&amp;quot;parent.setFrameHeight(document.body.offsetHeight);&amp;quot;&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;This works for me on Moz Firebird 0.6.1/Linux. From the compatibility charts at &lt;a href=&quot;http://www.xs4all.nl/~ppk/js/doctypes.html&quot; class=&quot;bb-url&quot;&gt;http://www.xs4all.nl/~ppk/js/doctypes.html&lt;/a&gt; it should work on IE5/Mac, Moz, Opera, and IE6 with doctype set. IE5 and IE6 without doctype should theoretically not run the above, but the best way to check IE compatibility is to field-test it yourself. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 14 Sep 2003 09:29:06 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1137828 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/how-fit-height-iframe-its-content#comment-1137820</link>
    <description> &lt;p&gt;..and that is not what I want.&lt;/p&gt;
&lt;p&gt;Wouldn&#039;t it be possible to do it like this:&lt;/p&gt;
&lt;p&gt;In every .htm file I have that can be viewed in the iframe one would add a func-call in . That function would first set the height of the ifreame to 0, then set the height to the height of the .hrm itself. If you would not set to 0 first, it would probably go wrong if you changed from a bigger .htm to a smaller.&lt;/p&gt;
&lt;p&gt;So, how would a .htm get the height of itself?&lt;/p&gt;
&lt;p&gt;Besides, isn&#039;t there any place where you can see an overview of all Javascript classes or something?&lt;/p&gt;
 </description>
     <pubDate>Sun, 14 Sep 2003 07:50:02 +0000</pubDate>
 <dc:creator>Enselic</dc:creator>
 <guid isPermaLink="false">comment 1137820 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
