Click to See Complete Forum and Search --> : Document in a document script
Metjhs23
01-09-2003, 04:21 PM
Can anyone reccomend a Document-in-document script like this one, but that works across browsers. (this one only works on IE4+)
http://www.dynamicdrive.com/dynamicindex3/docsindocs.htm
thanks
Stefan
01-09-2003, 05:44 PM
I'll do one better. I'll show you the way to do that without needing to use JavaScript at all (which is missing/turned off in 10-15% of users browsers).
Use a normal HTML <iframe>. It works just like frames except you can embde it anywhere onto your page.
Only (resonably) modern browser not to support iframe is NS 4, but you can add proprietary markup to make it work also in that.
It works something like this
<iframe>
<embed>
</embed>
</iframe>
You can read about it here
http://devedge.netscape.com/viewsource/2001/updating-dhtml-web-pages/#Tags%20Support
http://devedge.netscape.com/viewsource/2001/updating-dhtml-web-pages/TAGtests/matrixRunner.html
Everything you need to know anbout frames (including iframes) can also be found in the HTML specs here
http://www.w3.org/TR/html4/present/frames.html
Metjhs23
01-09-2003, 08:27 PM
Thanks for the advice. Is their any way i can remove the frame entirely?
Basically, what I'm tyring to do is to get a menu on the left had side which scrolls with the rest of the page (like so many other sites) that I can update as one single html file without using a database.
any tips?
Zach Elfers
01-09-2003, 10:11 PM
That is just what he gave you. You can have iframe attributes like this: <iframe src="page.html" width="100" height="100">Text you want to appear if the browser doesn't support iframes</iframe>
With an iframe, when the visitor hits the scroll bar arrow, the page will scroll, and the iframe will too.
Metjhs23
01-12-2003, 04:20 PM
Excellent, thanks guys. That's given me the exact layout I was after. Now i've got a page with two iframes, the menu on the left and the content on the right.
What tags do i use to open menu links in the content iframe? I've messed around with the same tags you'd use with a normal frame... <frame name="right", target="right" etc (the sort of thing that would go in the actual frames page)
I still can't seem to get it to work though. IE keeps opening the content window in a new browser window. Any advice?
Stefan
01-12-2003, 05:07 PM
Originally posted by Metjhs23
I've messed around with the same tags you'd use with a normal frame... <frame name="right", target="right" etc (the sort of thing that would go in the actual frames page)
You probably done some small error somewhere.
If you provide an url the chance that we can help you increases manyfold. :)
Metjhs23
01-12-2003, 09:06 PM
Disregard that last post. Havinging an embedded menu to remove the need for opening into frames in the first place. The original plan was to have many seperate htmls with no messy frames to screw around with search engines etc, linked together with the one menu (now in the iframe). Man, I think i might go and have a lie down.