View Full Version : "Framing" the question ...
Darth
02-06-1999, 02:17 PM
Hey folks!
Okay, here's the problem (challenge?) ...
I'm trying to figure out if there is a way to invoke a specific page from a frameset from a page outside the frameset, using a single link. Well that wasn't very clear.
Frameset A has content pages AA, AB, and AC
Frameset B has content bages BA, BB, and BC
I want to be able, with a single click from page "AA" (part of Frameset A) to page BC (part of Frameset B). I know I can use the javascript "Go to URL" if I stay within the same Frameset, but I can't figure out if there is a way to invoke a given page in a DIFFERENT Frameset.
Argh. Just reading this makes me confused. http://www.aota.net/ubb/frown.gif
Well, if anyone can parse what I'm asking and has a solution / idea / "give up" answer, please post for me.
Thanks for the help.
Andy
------------------
Andy Tuttle
"Life is too important to be taken seriously" (with thanks to Oscar Wilde)
hearts
02-06-1999, 05:25 PM
.Either my brain is crashing.. or i am not understanding the question
DO you want for when clicking a link in one frame.. open up in another?
if so.. then what you do is target your link... your frames should all have a name.. make the target-"name of the frame" ..
i hope i understood what you were asking for
Frames
<frame src="whatever.htm" name="main" scrolling="no" noresize>
sample would be
<a href="AA.htm" target="main">link text</a> (whatever you name your frame)
----------
hearts
[This message has been edited by hearts (edited 02-06-99).]
[This message has been edited by hearts (edited 02-06-99).]
Darth
02-06-1999, 09:53 PM
Hearts,
Thanks for your reply. I guess I just don't know quite how to ask the question ... and I'm worried there is a super-simple solution that I'm missing (it's sure happened before!).
Here's the LONG version.
I have a navigation scheme where I have a number of Framesets (let's say, "Blue," "Red," and "Green"). Each Frameset consists of a header ("Blue") and a content area ("Happy," "Sad," "Indifferent").
Now, when I am in the "Blue" area, it's easy for me to load *.html files into the content area ... I just point to the file and use "_self" as the target. The new *.html file loads into the current frame, and my header stays the same.
Such as, "Blue / Happy" with a link in "Happy" to load "Sad," so I end up displaying "Blue / Sad" when that link is clicked.
What I'm trying to do is move from one frameset to another frameset, while pointing to a specific content area in the newer frameset (rather than just the base established by the initial frameset). For example, "Red" as the header, "Indifferent" as the content).
So, "Blue" Header / "Happy" content -> "Red" Header / "Indifferent" content.
Whenever I try to link from outside the Frameset, all I can go to is the "default" frameset (the one I initally defined to establish the frameset).
I still don't know if I'm communicating here ... but I appreciate you spending the time trying to help. I'm gonna go out and surf a bit, maybe I can figure out a solution (or a way to present the problem in English!).
Thanks again.
Andy
------------------
Andy Tuttle
"Life is too important to be taken seriously" (with thanks to Oscar Wilde)
(Surprise ... I had to edit this! he he he)
[This message has been edited by Darth (edited 02-06-99).]
hearts
02-06-1999, 10:20 PM
*considering a good therapist at this point in time.. but gonna see if I understand what you are saying*
HOW many frames do you have going here?
okay.........
when a viewer clicks a link.. you want for two frames to be loading? (changing?)
I *think* the answer to your question is on this page -- vzone.virgin.net/sizzling.jalfrezi/frames/fframes.htm (http://vzone.virgin.net/sizzling.jalfrezi/frames/fframes.htm)
Scroll down -- near the bottom you will find the FAQ (Frequently asked questions) and I believe the second question/answer is what you are looking for http://www.aota.net/ubb/wink.gif
Deb
[This message has been edited by Deb (edited 02-06-99).]
Justin
02-07-1999, 12:31 AM
If I'm decrypting the question correctly, you want to be able to click a link to not only load a whole new frameset altogether, but also to specify what gets loaded into each frame. Right??
If so, best way to do this is to have separate frameset pages, each one with different content pages to load. This also will prevent people from ending up on a page that was supposed to be in a frame - once they click a link, it loads a new frameset page.
Loading another frameset doesn't slow it down at all, either, because any frames that were the same from before are still cached, and in Explorer it won't even disappear. You'd never know a different frameset loaded.
But essentially, I don't think there's another way to do that other than maybe using cgi with the query string telling the frameset page what frames to load. Del has found a way to use query strings in JavaScript, but now you're talking browser dependant pages, more so than frames itself. And more complications.
I am pretty sure that's what you were asking, that's what I took from it anyway. If not, just slap my around and tell me to shut up http://www.aota.net/ubb/smile.gif
------------------
Justin Nelson, SFE Inc.
http://www.vdj.net
Darth
02-07-1999, 02:46 PM
Everyone, thanks for the replies.
Hearts, I'm sorry if I caused you any mental or emotional distress. Maybe I should put a disclaimer on my questions ...
Warning!
Answering any question posted by Andy is taken at your own risk! Please do not hold Andy responsible for any metal or emotional distress, duress, pain or suffering associated with your attempts to answer his questions. You agree to hold harmless Andy and / or his agents, his hiers, and his cats any and all results of your attempts to respond to his questions. You assume all responsiblity for any physical, emotional, or psychological harm that results in your attempt to answer his questions.
Thank you!
... http://www.aota.net/ubb/wink.gif
Deb, as usually, you pegged it. I checked out the page you pointed to, and it did answer my attempt at a question. http://www.aota.net/ubb/smile.gif
What I want to know is, how did you learn to infer the meaning of a question from the kind of drivel I posted, and how the *expletive deleted* do you know where the answer to every question is? Thanks.
Justin, thanks for your help. You did "decrypt" the question (boy, I gotta figure out if I can sell that skill ... "your content robustly encrypted for only a fraction of what you're paying now!"). Actually, I'm gonna' stick with your solution rather than attempt JavaScript (for now), just generate a new frameset based on the already extant pages and offer those. I didn't want to "mucky-muck" up my directory structure, but after attempting to solve the problem using JavaScript, I decided that I can leave a bit of a mess around my directory structures while I'm learning all this.
Thanks a lot, all of you, for your help. I really appreciate it.
((Promising to attempt to pose questions in a less painful manner and with a lower level of conceptual encryption in the future.))
Andy
------------------
Andy Tuttle
"Life is too important to be taken seriously" (with thanks to Oscar Wilde)
[This message has been edited by Darth (edited 02-07-99).]
and his cats
Speaking of cats.... We just inherited an all black cat that we have named Saber -- so the family is now made of 8 http://www.aota.net/ubb/wink.gif She decided to camp in our yard for a few days too long -- stole our hearts -- and is now attempting to steal the thrown in the home :P (a aprox 4 month old cat has much work to accomplish this over a ten year old cat<grin>
What I want to know is, how did you learn to infer the meaning of a question from the kind of drivel I posted, and how the *expletive deleted* do you know where the answer to every question is? Thanks
Once you have spent hours and hours with a person trying to figure out why they are saying your server is broke cuz they can't check mail -- Only to find out that they are trying to check their mail with CuteFTP you learn to look close at each and every word in the questions http://www.aota.net/ubb/smile.gif
Once I think I have the question pin pointed I first hit my book marks which are sorted by topic of questions (yours was in /HTML-Help/Frames) if the answer is not there I go to altavista and type out the question http://www.aota.net/ubb/smile.gif
Glad you found a fix to your problem http://www.aota.net/ubb/smile.gif
Deb
Darth
02-07-1999, 08:22 PM
I love speaking about cats!
We just inherited an all black cat that we have named Saber -- so the family is now made of 8
I was holding steady at 5 for about 4 months. But we found a stray wandering around work, and the silly kitty kept jumping up in my lap and purring like crazy. (Cats must know a sucker when they see one!).
A couple of folks thought she might be preggers (she's about 4 months old ... so it's not out of the question). But her first night here (on real food) she threw up 3 plastic sandwitch bags and some aluminum foil. http://www.aota.net/ubb/frown.gif
But she's got a good home now, and trying her best to boss everyone else around. http://www.aota.net/ubb/smile.gif A friend suggested the name "Miss" (from the orphans of Les Miserables), so now she's "Mizzy Bear" (all my cats are bears ... don't ask cause you'll get the story!). She's going to the doctor and spend the night sometime next week, to get fixed. I end up with enough strays, I don't need 'em making them in-house!
I'm glad I don't have a fenced yard and lots of free time, cause I'm sure I'd have lots of doggies too!
Thanks again for your help, and for providing this wonderful place on the web. I'm proud to be a FutureQuester!
Andy
------------------
Andy Tuttle
"Life is too important to be taken seriously" (with thanks to Oscar Wilde)
hearts
02-07-1999, 09:00 PM
awwwwwww.. i won't sue ya or nothin' like that.. http://www.aota.net/ubb/wink.gif
i was having a hard time understanding what you were saying.. plugging away at my own site, creating graphics,tweaking a cgi code to my specifications, uploading, reuploading.. that type of thing.. and think my brain just needed to be rebooted.. hehehe.
And I have more cats, than i have kids! We had nine until the other day, now we have two more strays hanging out... they just sorta find my place a great hang out! http://www.aota.net/ubb/biggrin.gif
[This message has been edited by hearts (edited 02-07-99).]
vBulletin® v3.6.8, Copyright ©2000-2013, Jelsoft Enterprises Ltd.