two frames, one scroll bar?

windows

Guest
hi,<br />
im trying to set up a page where you have two frames, and both are controlled by one scroll bar, on the far left.<br />
i have tried a nested frameset layout but that doesnt seem to<br />
work. Is it actually possible to do this? Or is there a better way?<br />
thanks loads,<br />
cate<!--content-->It might be possible using javascript but I wouldn't want to be the one to try it LOL.<br />
<br />
Can't you just use a two column table?<!--content-->unfortunately not - thats what i have at the moment,<br />
but I need the right hand column to be updated daily - content generated by a program running constantly. So, need it to be a separate document I guess, as the rest of the content of the page needs to be changed manually.<br />
any ideas?! im completely stuck on this one!<!--content-->Could you possibly use an iframe to contain just the two columns that need to scroll at the same time? that would limit how much is in the second column.<br />
<br />
Alternatively, (sudden bright idea LOL) you could use a server side include SSI, (or PHP) (see the link in my sig for the code - webdevfaqs, probably under php). I believe there's an ASP equivalent too.<br />
<br />
This would allow you to include an external file in the second column of the table. You need only update the external file, and the server automatically adds it in.<br />
<br />
Does that sound better? Or doesn't your hosting support server side stuff?<!--content-->http://www.webdevfaqs.com/php.php#include is the link<!--content-->in theory that sounds fantastic!! i know my hosting service doesnt support PHP, but they do support ASP, so I presume that means they support server side scripts - I'll check with them. Do you know where I could learn about ASP SSI? no idea how to script that atm, but willing to learn!!<!--content-->damn, i thought that would be the perfect solution - they dont support SSI either... will an ASP equivalent work, and how does it work? am a bit new to this sort of stuff, but keen to understand it<br />
thanks loads<!--content-->Okay PeOfEo posted something a while back in ASP that might work. I'll PM him and ask him to respond on the thread, or see if I can find the post.<!--content-->thanks, that would be great!:)<!--content-->Okay PeOfEo says he doesn't know a pure ASP way. You could post a thread in the asp forum and ask, but that's up to you.<br />
<br />
Maybe the best solution would be to get a free web host that supports PHP just for that page.<!--content-->do you mean for the external file? How would I reference to it in the second column?<!--content-->Actually I meant just host the one page that needs a php include (and the include itself) on a free web host. Your frame can then link to this page.<br />
<br />
The page that the include goes in is really the only one that needs to be on a php server, so in theory you could link back to your server for the included file.<!--content-->Some servers that do not allow PHP will allow XSSI (eXtended Server-Side Includes). XSSI is built into Apache webservers, it is not very flexible, but it is powerful and will work for your application.<br />
<br />
If you are unsure if your server account supports XSSI, look at its help page, or see if it supports the .SHTML extension.<br />
<br />
To include a file in your page using XSSI, use this code:<br />
<br />
<!--#include file="subdir/file.ext"--> <br />
<br />
Replace the file string with your document's location.<br />
<br />
Additional XSSI resources can be found at The XSSI Library (<!-- m --><a class="postlink" href="http://www.ordersomewherechaos.com/~rosso/xssi/background/commands.shtml">http://www.ordersomewherechaos.com/~ros ... ands.shtml</a><!-- m -->) page.<!--content-->thanks des, and dave, great ideas but my host doesnt allow php or SSI, XSSI, and the whole site needs to be on this hosting space, as every page includes this second column.<br />
Its a tricky one - no clue how to work it out, but cheers for the advice.:)<!--content-->Can you ask your web host about php support? Failing that try posting in the ASP forum.<!--content-->Scrap that last comment:<br />
<br />
<!-- m --><a class="postlink" href="http://www.w3schools.com/asp/asp_incfiles.asp">http://www.w3schools.com/asp/asp_incfiles.asp</a><!-- m --><br />
<br />
Try that and see if it works.<br />
<br />
Alternatively, see:<br />
<br />
<!-- m --><a class="postlink" href="http://www.shiningstar.net/articles/articles/standards/includefiles.asp?ID=AW">http://www.shiningstar.net/articles/art ... .asp?ID=AW</a><!-- m --><br />
<br />
<!-- m --><a class="postlink" href="http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=ASP+include+file">http://www.google.com/search?hl=en&ie=U ... clude+file</a><!-- m --><!--content-->
 
Back
Top