Click to See Complete Forum and Search --> : Load two frames without JavaScript


jochem
12-02-2003, 06:55 AM
Is it possible to load two frames from a third without using JavaScript?

Cheers, Jochem :cool:

DaveSW
12-02-2003, 06:58 AM
make a new framset page, and link to it using _parent or whatever.

jochem
12-02-2003, 07:07 AM
Thanks for your reply, but in my case that would not be an option. Frames A, B and C already exist. The menu is in frame A and should change frames B and C.

Is there any other way?

DaveSW
12-02-2003, 08:51 AM
I'm not aware of any other way. That's the reason I don't like frames...

Pittimann
12-02-2003, 09:14 AM
Hi Jochem!

Can you post the code of your frameset document or a link to it? I'm sure, there is a way out of that...

Cheers - Pit

DaveSW
12-02-2003, 09:20 AM
like combining frames b and c?

Pittimann
12-02-2003, 09:26 AM
Hi!

Talking to me, DaveSW?

If so:

My idea is just like that! The original frameset document has two frames only, let's say a and b. The src for frame a will be the document with the menu, the src of frame b would be another frameset document with two frames (let's call them c + d).

If I have a link in the menuframe with target frame b and the url in that links again points to a frameset document with two frames, it should work - don't you think so?

Cheers - Pit

Pittimann
12-02-2003, 10:03 AM
Hi again!

I wanted to wait jochem's code or link to adjust things for his needs.

Well, if anybody checks the attached zip - please don't criticize me too much for the chaos! I just spit the stuff into my editor to check whether it really works or not, even though I was already convinced that it has to work. It does :)...

The "updateTwoFramesHome.htm" is the file to open after unzipping all files to one folder.

Cheers - Pit

jochem
12-02-2003, 12:23 PM
Hello Pit and Dave,

Thank you so much for looking into my case. The reason why I stick to framesets is because layers with external HTML always need JavaScript. (I asked that question before in this forum.) And 13% of all users have JS blocked. Therefore I try to avoid JS wherever possible.

Of course I could solve the case by loading a new frameset. I used that trick on various occasions before. The thing is that the frameset I am using is pretty complicated. And, I would have to create a new frameset for each item on the menu. But... if that's the only way, than I'll have to go with it.

Cheers, Jochem :cool:

Pittimann
12-02-2003, 12:36 PM
Hi!

Two years ago, I tried to find a solution to exactly the same prob. And I did so intensively. I didn't succeed. So I tried to find my own way to get out of the prob.

I think it is not toooo much work. You just use the same frameset as many times as you need, just saving the document with the name required and changing the src's for the frames' contents. For me, the result was worth the effort :)

Cheers - Pit

jochem
12-02-2003, 12:46 PM
Allright, I'll take your word for it. Thanks for your advise.

From my other question in this forum "Loading external HTML into a div" I learned that SSI can be used to load external HTML into a div. That might be the only alternative for anyone trying to avoid both framesets and JS. I may use that method for future websites.

Cheers, Jochem :cool:

Pittimann
12-02-2003, 12:56 PM
Hi Jochem!

I hadn't read your other thread before.

Wenn I had this frameset prob, the webspaces I was dealing with, didn't support server side scripting (too expensive for the people who asked me to write for them).

For my own purposes I do things like that in PHP (and I love it :D)...

Good luck! - Pit

jochem
12-02-2003, 01:00 PM
Thanks, ciao!

DaveSW
12-03-2003, 06:44 AM
Originally posted by Pittimann
Talking to me, DaveSW?

Actually talking to anyone who'll listen... :D

LOL

Pittimann
12-03-2003, 06:53 AM
Well - I listened ;)

I just asked because sometimes I hear myself talking when nobody's there to listen :p

Cheers - Pit

jochem
12-03-2003, 07:24 AM
What a PITTI, MANN

Guess this thread can be closed. Thanx for your help guys!

Cheers, Jochem :cool:

Pittimann
12-03-2003, 07:40 AM
Yes Jochem - let's close it before I continue talking...

Cheers - Pitti