...

View Full Version : Alternative to Frames



babycam
10-25-2004, 07:20 AM
i got this email from a friend today "dude no one uses frames any more except you..."

i've done sone searching on frames in this site and although everyone is explaining the many pitfalls of using frames - nobody is really making any suggestions to use in their place.

i want a website that dosent reload the entire page every time i click a button. esentially i want a page with 3 "frames" 1 along the top for the banner and an image that changes on new pages, 1 on the left for the buttons, 1 on the right for the content.

does anyone have any suggestions...

mindlessLemming
10-25-2004, 09:32 AM
i want a website that dosent reload the entire page every time i click a button
Your friend is right.
You have few options other than a frameset for a site that doesn't do full page refreshing.
1) iframes synced up with js. No better than frames -- probably worse.
2) flash -- is it a video game or is it a website? Your choice.
3) using a hidden iframe and lots of javascript to pipeline the new data from the server and replace the old bits with the new bits. I'm involved in a web-app that does this and I wouldn't wish it upon anyone who doesn't truly need it.

Bite the bullet.
Refresh your page :D

: Yeah, I'm flash bashing. So sue me :p

gsnedders
10-25-2004, 01:39 PM
: Yeah, I'm flash bashing. So sue me :p Sure, I will ;)


Back on-topic, remember JavaScript can be disabled, and that Video Games which are websites only run on annoying++.

ronaldb66
10-25-2004, 02:19 PM
The main function of frames was the ability to gather page fragments from different sources, that and the ability to keep certain sections of a page "frozen" (like header and menu) while others (like the main content) feature a scroll bar.

The first function can best be replaced by Server Side Includes or a similar function found in server side scripting languages; for the second, and iframe could be used for the content section.
It should be noted that fixed headers and menus have become rather impopular and most of the time aren't very practical, considering the wide range of possibe screen/window sizes.

maghiel
10-25-2004, 05:56 PM
why not use divs? you can even make them scrollable :) they're meant for building pages :D

Roy Sinclair
10-25-2004, 10:37 PM
If you're gonna rebuild your page take a gander at http://www.csszengarden.com/ for a tremendous number of page layouts all of which use exactly the same html code. Try to design your html code like is used there and you can not only step out of the past (frames) but straight into the future and maybe give your "friend" a challenge at the same time :D .

babycam
10-26-2004, 03:04 AM
why not use divs? you can even make them scrollable :) they're meant for building pages :D

Well im new to all this coding business, only on my second site. when i was using <div style=overflow:auto> (might be a bit wrong - just going off memory there) i would get the vertical scroller i wanted. BUT if i as much as bold face the firt word on the top line, i would get a horizontal scroller (YUK). Futhermore if you use cell padding the scroller pads in as well...

chilipie
10-26-2004, 10:16 AM
http://www.beforethedog.com/tutoriali/tut1.htm

Brilliant tutorial on the use of divs for look-a-like iFrames.

Sayonara
10-26-2004, 10:40 AM
Knowing my luck this is probably going to spark off some controversy, but here goes...

If you need to use frames to make your pages work, there is something very very wrong with your design.


Hence web developers don't go out of their way to replace frames, because by and large they don't need to.


/waits for the wrath



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum