blackcell Posted May 30, 2008 Share Posted May 30, 2008 Hello, I have a program that will allow users to drop a php file in a directory and if the naming condition is right it will create a tab and the href to that tab is the file. It works but I am doing it through iframes and the iframes src attribute. I want to make it so the targeted page will never have scroll bars. WIth iframes I have to set a static height. Quote Link to comment Share on other sites More sharing options...
jcombs_31 Posted May 30, 2008 Share Posted May 30, 2008 iframe { height: xx.px overflow: hidden; } The problem is that you will not see the data if it is larger than your height. Quote Link to comment Share on other sites More sharing options...
blackcell Posted May 30, 2008 Author Share Posted May 30, 2008 Is there a way around this css or conventional html? I have wondered if there is a way to determine the length of a page before it is loaded to set the size. I don't know I think it is going to take javascript. Edit: If 100% for height would work on like it does for width this would be solved. Quote Link to comment Share on other sites More sharing options...
jcombs_31 Posted May 30, 2008 Share Posted May 30, 2008 The iframe itself will load before the src file loads into it, so I don't see how that could work. I'm sure you can do it with some javascript, but why so set on no scrollbars? Quote Link to comment Share on other sites More sharing options...
blackcell Posted June 3, 2008 Author Share Posted June 3, 2008 I found a javascript to take care of it. I built a framework type of page that you can drop 'module' files into. You basically drop a file that is structurally named and it will set a tab on the main program, and load that src target into the frame below. It will be too confusing for the people I am making it for to have to deal with two sets of scroll bars. SO basically I wanted the iframe scroll bars to be the only ones. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.