Forum: Geek Forum
Topic: html help pls?
started by: fatbitch

Posted by fatbitch on Mar. 17 2001,07:56
Ok i have a question for all you html guru's. How (if possible!) can i make a link point to 2 different pages to load in 2 separate frames?

i.e if i have main1.html and main2.html, and i want main1.html to open in the frame named "main1" and ALSO have main2.html load in "main2" frame with one click?

i thought maybe you could do this by href'ing to main1.html and having a meta refresh inside main1.html to refresh to main2.html, with a tag similar to "target" so it refreshes into a different frame?? is this possible?

god i hope that all makes sense! please help!


Posted by cr0bar on Mar. 17 2001,14:27
The most browser-safe way to do this is to have your link point to a new frameset file, with the target being "top".

By the way, frames are horrible and you should never use them unless you absolutely have to (for instance, large software manuals or a huge FAQ)


Posted by SimplyModest on Mar. 17 2001,14:27
that should work... but there is prally an easier way to do it..
like.. give us a link to the page in progess.

(i personally use tables for everything, mainly cause i think frames look bad..)
but another thing i did just REAL recently was a java frame that was on top of the rest of the page.. (more like DHTML i think.)

------------------
Oh, ho, ho, irony! Oh, no, no, we don't get that here. See, uh, people ski topless here while smoking dope, so irony's not really a high priority. We haven't had any irony here since about, uh, '83, when I was the only practitioner of it. And I stopped because I was getting tired of being stared at.


Posted by Spydir Web on Mar. 17 2001,14:58
if you're doing strickly HTML, do like cr0 said and just put main1 and main2 into their own frame thing so basicly you're running frame-in-frame type thing. If you wanna go |<-r4d 31337, I'm sure you could bust out some javascript code to something like that.

------------------
Spydir Web - < http://netsyndrome.net/spydirweb/ >
Net Syndrome - < http://www.netsyndrome.net/ >

Sometimes you're the dog, sometimes you're the hydrant...


Posted by fatbitch on Mar. 18 2001,06:49
i know i should be using tables.... but i like working with frames

anyway personguy suggested this but of javascript

quote:

<SCRIPT>
function news()
{
window.main1.src = "head_news.html";
window.main2.src = "news.html";
}
</SCRIPT>

<a href="javascript:news();">News</a>


but that gets an error... can anyone fix this up? thanks for your help guys


Posted by SimplyModest on Mar. 18 2001,19:02
quote:
Originally posted by fatbitch:
i know i should be using tables.... but i like working with frames

anyway personguy suggested this but of javascript

but that gets an error... can anyone fix this up? thanks for your help guys


try taking the semi-colon out of the quotes at the bottom.
<a href="javascript:news()">News</a>

i dont know too much java... but thats all i got for you..

------------------
Oh, ho, ho, irony! Oh, no, no, we don't get that here. See, uh, people ski topless here while smoking dope, so irony's not really a high priority. We haven't had any irony here since about, uh, '83, when I was the only practitioner of it. And I stopped because I was getting tired of being stared at.


Posted by fatbitch on Mar. 18 2001,20:36
nope
thanks anyway
Posted by Rhydant on Mar. 19 2001,04:10
jesus christ. have non of you people EVER heard of < HTML Goodies >?
go < here > for changing 2 frames at once. i dont use frames, so i didnt bother to read it. you have to

i am so l33t.

------------------
...when you look long into an abyss, the abyss also looks into you
-- Friedrich Nietzsche


Posted by fatbitch on Mar. 19 2001,07:18
thanks rhy, but personguy already solved my problem, with something different to what was on that page

quote:

<SCRIPT>
function news()
{
window.parent.main1.location.href = "head_news.html";
window.parent.main2.location.href = "news.html";
}
</SCRIPT>

<a href="javascript:news()">News</a><p>


thanks anyway dude


Powered by Ikonboard 3.1.4 © 2006 Ikonboard