I have a frameset, that works with three frames, a menu, a sub-menu, and a body. What i want to know is, how can one make an external link not to the main frameset, not to one html file, but to the frameset with a specific page appearing on one of the frames.
What is also bothering me is that people bookmarking the page will always bookmark the frameset, and not a specific configuration of it, correct?
Right, that is bad. I thought frames would be a good solution. Like i said, what was asked was a menu that would open another one. This last one would control the actual navigation. No fancy javascript, or other scripts allowed. Css was greenlighted. Still, frames seemed the better solution.
Except now, for the whole linking and bookmarking thing.
I guess i can bypass this problem if i use i-frames smartly, if no other solution comes up.
From: Kansas City, MO , USA Insane since: Feb 2002
posted 05-31-2005 08:16
All iframes are is frames, but inline, they still suck... Even though I was forced (and I don't like it one bit) to use it on my site for my shoutbox, but I have been working my arse off to figure out an alternative...
If I were you, I would look into the CSS alternative. I will do some looking tommorow for something that might work.
quote:Right, that is bad. I thought frames would be a good solution. Like i said, what was asked was a menu that would open another one. This last one would control the actual navigation. No fancy javascript, or other scripts allowed. Css was greenlighted. Still, frames seemed the better solution.
Except now, for the whole linking and bookmarking thing.
Frames are inferior to SSI in almost any case - period.
Big companies do not use frames on their main sites - y'know why? Usually because they pay people that know what they're doing and those people know that using SSI is better than using frames.
That's the good occasion to explain the pros and cons of frames, SSI ( or any server side language ) to your boss.
The time ( and money ) you wasted on this simple problem alone should be enough to convince him of the hassle of the framesets.
However, if you can't take the server side way, you'll have to do it à la 1998 style, that is to include a nifty piece of javascript in *every* html page of your site that will test if the top.location equals the self.location and then will load a page that will rebuild the frameset with some document.write( ) and load the right content page in the content frames thanks to a parameter sent in GET. It's ugly as hell and the script needs to included on *every* single content page, but it works.
1) what is the arrangement here? Are you designing for a client? Or doing this at your job in addition to what you might normally do there? Or....?
2) whos is the boss, and what reason (if any) does said boss give for such decisions? And is this boss actually qualified to make such decisions?
No fancy javascipt I can understand (sort of).
However, server side scripting is something that should be a part of every site (ok, almost every site) IMO. To say no to it when it is available is really just plain silly.
actually, this boss, probably knows more than most "people that know what they're doing". its not really about using ssi or not, but more about currently existing protocols on the use of the machine. i'll just stand still and wait for some feedback. in the meanwhile i'll play with some <iframes> and <object data> to see if it helps.
poi, thanks. i knew such thing existed, but never had to investigate. i'll keep it in mind.
dl: this is a page for the university campus. For one of its departments. Under the request of a designated professor. The design is set. The problem resides in the special request of having a menu that changed another menu that controled the page. And they had to be separated and positioned, exactly like presented on the current aspect. But without clientside scripting.
The way i got it to work is the way that was requested. Everything is in its proper position. The top menu controls the left menu who controls the main page. The problem is that it's using frames.
What i need now is to have it working exactly like it does now, but without using the frameset.
I saw some use of css for creating navigational menus, but nothing similar. And so, i think the to ssi or not to ssi aspect is secondary right now.
DL-44: as reisio ironically said, I doubt anyone qualified to take a technical decision would decide to go for a frameset.
quote:server side scripting is something that should be a part of every site (ok, almost every site) IMO
I've never seen a server which do no offer server side scripting.
Adding the menu and submenu can be done via Apache in at least 2 ways :
1. by using the request URI as a parameter of a sever side script that will load the navigations and append the requested page.
2. if the server can run PHP, you can do something like:
quote:And so, i think the to ssi or not to ssi aspect is secondary right now.
So the central issue is getting this layout to work without frames?
It must be remembered that iframes are still frames...so ditching frames and using an iframe doesn't accomplish anything.
Now, let's make sure I am understanding the predicament...
1) you need a top menu
2) when an item on that menu is clicked, will load a page which will also have a sub-menu
3) It needs to not use frames.
4) It needs to not use server side scripting or javascript.
5) it needs to be updated easily? Or this is a wish and not a requirement?
Ok, there are pretty much 3 ways of acheiving a setup like this
1) Each page has whichever menu or set of menus that is needed hardcoded into it.
- This is bad because changing a menu means changing potentially hundreds of files.
- This is good if a nuclear attack wipes out all web servers with PHP, SSI, or any other server side language functionality.
2) You use frames.
- This is bad becuase it causes many issues with indexing, bookmarking, and the like. It also depends on the integrity of the frameset, which can be comprimised by the user. And, well, it's just bad.
- The good side is that it allows you to update one file for each menu.
3) You use javascript to write the navigation menus
- This is bad because of user agent dependencies, and it is a bit akward
- This is good because it allows easy updating (change one file, all files include the updated file)
4) You use a server side include system to include the appropriate files wherever they are needed.
- This is good because it is endlessly flexible, has no user agent dependencies, and allows you great control and ease of updating. The only limit to what can be done with this type of setup is your knowledge of the language (and with SSI or PHP, you can pick up enough awful quick to get you going easily).
- This is only bad if you are told you can't do it.