PDA

View Full Version : Java + Html



YUPAPA
July 16th, 2001, 00:02
Can anyone help me?
I have a page that has frames, but want it to redirect to a page that doesn't contain frames.

HOW?

lucifer
July 16th, 2001, 06:35
you mean JavaScript? not java

how? from a link? or a HTTP redirect?

YUPAPA
July 16th, 2001, 10:11
Yes redirect, but it is not that easy.
There are 3 frames in a page, but in one of them, it contains the META REFRESH thingy. I want the frame containing the META REFRESH redirect to a new page without any frames.

In a text link, it should be like this "<A HREF="somepage_noframe.shtml" target="_TOP">No-Frame Page</A>

What about redirect?

lucifer
July 17th, 2001, 05:33
can you do something like

top.location.href="new url";



top may need to be differently written

gyrbo
July 17th, 2001, 06:12
use:
<meta http-equiv="Refresh" content="0;url=page2.html;target=_top">
I don't know if it works, but it should.

lucifer
July 17th, 2001, 06:22
i am going to boycot all duplicate threads

YUPAPA
July 17th, 2001, 10:20
<SCRIPT LANGUAGE="Javascript">
<!--
if (parent.frames.length)
top.location.href= self.location;
// -->
</script>


Gyrob helped me out!

gyrbo
July 17th, 2001, 14:28
As unual, I used that script for killing the namezero frameset. I was thinking about modifying it to handle path forwarding, but my namezero domain exipires in december, so it's pretty useless.

YUPAPA
July 17th, 2001, 17:54
How to scroll down the page to the very bottom automatically?

Java again, I guess!

niv
July 17th, 2001, 17:59
put this near the bottom: <A NAME="bottom"> and when you link to that page, at the end, put #bottom.

YUPAPA
July 17th, 2001, 18:15
<META HTTP-EQUIV="REFRESH" Content="3; URL="message.cgi">
<HTML>
<HEAD><TITLE>Message</TITLE></HEAD>
<BODY BGCOLOR="#000000">
<FONT FACE="VERDANA" SIZE="1" COLOR="#DEDEDE">
$message
</FONT>
<A NAME="BOTTOM"></A>
</BODY>
</HTML>

This is my whole page

Did I put the NAME="BOTTOM" on the correct place?
I just want the page scroll to the very end everytime it refreshes.

YUPAPA
July 17th, 2001, 20:50
needcgispace, can you help me out?