iframe problem!

liunx

Guest
Okay....I have an iframe question....When I link to a link not in the iframe to show in it.....the page loads fine with no scrollbar....when i link to a page in the iframe to another page in the iframe......it changes the size of the iframe and puts a scrollbar on the iframe.....what is goin' on......heres a link to my site where you can see what i'm talkin' about:<br />
<br />
<!-- m --><a class="postlink" href="http://www.warsaw.k12.in.us/wchs/hidden">http://www.warsaw.k12.in.us/wchs/hidden</a><!-- m --><br />
<br />
When you click on Art on the side menu bar is shows a page in the iframe in the middle....when you choose a teacher from the sidebar it shows the iframe correct w/out the scrollbar.....when you click on Art again and then choose a teacher from the iframe....it loads the same homework.asp page in the server.....but shows a scrollbar and the iframe is shorter.....please help!<!--content-->don't know about the scrollbars; the code looks good enough for me. i'll let somebody else tackle that.<br />
<br />
the pages for guidance and comments cannot be found. in firefox, the menu does not work, as no teachers show up. only the art teachers show up in netscape, and they show up in the middle of the iframe. the same effect happens with opera 7, but all the teachers show up in the menu and there are two random boxes above the art teachers in the middle of the iframe.<!--content-->from your site:<br />
<br />
<script language="javaScript" src=http://www.webdeveloper.com/forum/archive/index.php/"crossB.js"></script><br />
<script language="javaScript" src=http://www.webdeveloper.com/forum/archive/index.php/"navBar.js"></script><br />
<script language="javaScript" src=http://www.webdeveloper.com/forum/archive/index.php/"writeTitle.js"></script><br />
<script language="javaScript" src=http://www.webdeveloper.com/forum/archive/index.php/"homeTab.js"></script><br />
<script language="javaScript" src=http://www.webdeveloper.com/forum/archive/index.php/"clock.js"></script><br />
<br />
<script language="javaScript" src=http://www.webdeveloper.com/forum/archive/index.php/"ticker.js"></script><br />
<script language="javaScript" src=http://www.webdeveloper.com/forum/archive/index.php/"height.js"></script><br />
<br />
<br />
You're relying too much on JavaScript for vital parts of the site, as 13 percent of the internet public will not be able to use this site because of the abundance of JS. In fact, the whole site is relying on JS; this is bad :(<br />
<br />
Same story with the IFRAME, this is less accessible than JS; a DIV with OVERFLOW set to AUTO and use of SERVER SIDE INCLUDES would be much more accessible than an IFRAME.<br />
<br />
There isn't a DOCTYPE declared; this forces the browser to guess at how to render the page; also bad :(<!--content-->what do you mean about the doctype...also....What can i use instead of an iframe to look the same on screen?<!--content-->doctypes (<!-- m --><a class="postlink" href="http://www.w3.org/QA/2002/04/valid-dtd-list.html">http://www.w3.org/QA/2002/04/valid-dtd-list.html</a><!-- m -->) <br />
As to the iframe, you can use:<br />
<div style="overflow:auto;width:100px;height:100px"></div><br />
Note that the height and width are obligatory numbers, but neccessary for the overflow effect to work properly, and that styles work most effectively when defined in the head rather than inline<!--content-->What he said. lol (he beat me to it)<!--content-->so like:<br />
<br />
<div style="overflow:auto;width:100px;height:100px"><iframe src=http://www.webdeveloper.com/forum/archive/index.php/page.asp></iframe></div> <br />
<br />
is this what you mean?<!--content-->more like <div style="overflow:auto; width:100px; height:100ps"><!--#include file="page.asp"--></div><!--content-->then how do i link other pages to open in that same div? i can't use iframe?<!--content-->you could either have the included file be determined through the query string, or have a seperate shell page for each include<br />
EDIT: and no, iframes are bad/evil/[insert words with a negative conotation]<!--content-->that'll take time which i don't have....an iframe is much easier....with what i have with the links on the side <!-- m --><a class="postlink" href="onhttp://www.warsaw.k12.in.us/wchs/hidden">onhttp://www.warsaw.k12.in.us/wchs/hidden</a><!-- m --><!--content-->iframes may seem easier, but in the long run the include method will be faster and take up less bandwidth<!--content-->thats the thing.....i don't understand what/how to switch from an iframe and this include now.....how do i link the same as what was!<!--content-->either make the switch to CSS w/ DIVS now, when there are less pages to make the changes to, or later when it will take more time and resources. In my opinion, you will be doing your client a serious dis-service by using non-standard elements to create this site. :) At the very least you need to cut back on the JS and do those things server side. I would explain things a bit more, but I have to close up my shop, so you will have an explaination tomorrow morning if one is not provided to you tonight. :)<!--content-->iframe problem: iframe.<!--content-->haha...very funny peofeo....i just think they are easy to use and am angry that i have to change almost 25 pages<!--content-->Originally posted by sirhcchris3 <br />
haha...very funny peofeo....i just think they are easy to use and am angry that i have to change almost 25 pages <br />
<br />
<!-- #Include virtual="layout.inc" --><br />
<br />
This is the syntax for an include with asp classic, asp.net and ssi.<!--content-->i know you all will hate me for this....but i'm gonna stick with an iframe for now....I just have a question about it....when you go to <!-- m --><a class="postlink" href="http://www.warsaw.k12.in.us/wchs/hidden">http://www.warsaw.k12.in.us/wchs/hidden</a><!-- m --> and then click on administrators on the left menu bar......then choose an administrator from the list on the page.....when the new page opens.....the whole page won't scroll...but with other pages not linked to internally from the iframe it streaches the iframe.....like if you choose a teacher under one of the class catagories.....please help!<!--content-->I choose not too if you are going to use an iframe :p . ctually I do not see the prob on mozilla but I do see the whole site out of alignment. Design for mozilla and opera, hack it back for ie.<!--content-->iframes are a good tool<!--content-->Originally posted by IncaWarrior <br />
iframes are a good tool <br />
<br />
I will admit that IFRAMES can be a good tool if you will admit that they are not accessible :p <br />
<br />
I choose not too if you are going to use an iframe . ctually I do not see the prob on mozilla but I do see the whole site out of alignment. Design for mozilla and opera, hack it back for ie. <br />
<br />
Agreed. However, I believe that you will experiance far less accessibility/compatibility problems rewriting the site with accessibility in mind. :)<br />
<br />
i know you all will hate me for this....but i'm gonna stick with an iframe for now....I just have a question about it....when you go to <!-- m --><a class="postlink" href="http://www.warsaw.k12.in.us/wchs/hidden">http://www.warsaw.k12.in.us/wchs/hidden</a><!-- m --> and then click on administrators on the left menu bar......then choose an administrator from the list on the page.....when the new page opens.....the whole page won't scroll...but with other pages not linked to internally from the iframe it streaches the iframe.....like if you choose a teacher under one of the class catagories.....please help! <br />
<br />
Fact is, you will continue to experiance problems much like this one if you plan to stick with the IFRAME. They might catch on in a few years, but, then again, Framesets still havn't. :)<!--content-->i found a simple javascript to fix this problem and have another site for non ie people! far less javascript<!--content-->Originally posted by sirhcchris3 <br />
i found a simple javascript to fix this problem and have another site for non ie people! far less javascript ummm??? What are you talking about. You need to not be using java script for browser detection, you use asp, so why are you using crap inaccessable java script when you can be using the http user agent for browser detection. Anyways a better solution is to make one page for everyone and not use iframes or javascript in ways that will hinder functionality if a user does not have them.<!--content-->
 
Back
Top