Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Autoload Page outside of Frameset

Reply
Thread Tools

Autoload Page outside of Frameset

 
 
Thomas Schneider
Guest
Posts: n/a
 
      06-01-2005
Hello NG.

I have to load a website in a Frameset with 2
Frames: A top, B bottom.

Now I want to load a page in Frame B, which
automatically (with HTML or JavaScript) loads
another Page outside of the Frameset but in the
same Window.

It should have the same function like a hyperlink
with target="_parent", but I don't want to klick
on a link for this, it should happen automatically.

Does anybody know how to do this?

Thx.

Thomas
 
Reply With Quote
 
 
 
 
Thomas Mlynarczyk
Guest
Posts: n/a
 
      06-02-2005
Also sprach Thomas Schneider:

> Now I want to load a page in Frame B, which
> automatically (with HTML or JavaScript) loads
> another Page outside of the Frameset but in the
> same Window.


Meaning that the whole frameset will be gone - so why have it in the first
place?
If you want something like "click here to remove frameset", a normal link
with target="_top" will do.

> It should have the same function like a hyperlink
> with target="_parent", but I don't want to klick
> on a link for this, it should happen automatically.


You mean like this?
top.location.href = 'another_page_outside_of_the_frameset.html';



 
Reply With Quote
 
 
 
 
Thomas Schneider
Guest
Posts: n/a
 
      06-02-2005
Ist Englisch in dieser Newsgroup Pflicht?
Sonst könnten wir das auch auf deutsch machen.

Thomas Mlynarczyk schrieb:

>
> Meaning that the whole frameset will be gone - so why have it in the first
> place?
> If you want something like "click here to remove frameset", a normal link
> with target="_top" will do.
>
>


I have a web address at 1&1. It is only a kind of forwarding. But they
do this forwarding by generating a frameset with one frame not visible
an in die other frame my website. It is because they offer the same
web address forwarding with ads, which they show then in the upper frame.
I have the package without ads, but the problem is, if I press refresh
in my browser when I am on my page, the whole frameset is reloaded and
die start page of my site appear not the page I was actually at. Also
problems with bookmarking etc. So I want to generate a page to which
the 1&1 address is forwarded to, and which then loads my site outside
the frameset. But this shall happen automatically, not by klicking a
link


> You mean like this?
> top.location.href = 'another_page_outside_of_the_frameset.html';
>



I tried to use something like this with onload="" in the body, but
I must have done sth. wrong, because it didn't work. Can you help
me with more details!

Thx

Thomas

 
Reply With Quote
 
kchayka
Guest
Posts: n/a
 
      06-02-2005
Thomas Schneider wrote:
>
> I have a web address at 1&1. It is only a kind of forwarding.
> I have the package without ads


Hmmm... If you're paying to remove ads, why don't you spend that money
on real hosting instead? There are hosting packages for as little as $1
per month out there, as well as domain name registration for less than
$10 a year. With those kinds of prices, there's no good reason *not* to
do it, is there?

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
 
Reply With Quote
 
Thomas Mlynarczyk
Guest
Posts: n/a
 
      06-03-2005
Also sprach Thomas Schneider:

> Ist Englisch in dieser Newsgroup Pflicht?


Ja.

> Sonst könnten wir das auch auf deutsch machen.


Dafür gibt's z.B. de.comm.infosystems.www.authoring.misc oder andere.

> I have a web address at 1&1. It is only a kind of forwarding. But they
> do this forwarding by generating a frameset with one frame not visible


Ok, now I understand the problem.

>> top.location.href = 'another_page_outside_of_the_frameset.html';


I forgot: You must check if the page is not already in the "top", otherwise
you create an infinite loop. See below.

> I tried to use something like this with onload="" in the body, but


You can put it directly in the head. No need to let the user wait until the
page is loaded.

> I must have done sth. wrong, because it didn't work. Can you help
> me with more details!


Put this in the head of the page which is loaded into the frameset and
supposed to be outside of it:

<script type="text/javascript">
if (top != self) top.location.replace(self.location);
</script>

Of course, this will not work if the user has JavaScript disabled. The best
solution for you would be indeed what kchayka suggests.


 
Reply With Quote
 
Thomas Schneider
Guest
Posts: n/a
 
      06-08-2005
kchayka schrieb:

>
> Hmmm... If you're paying to remove ads, why don't you spend that money
> on real hosting instead? There are hosting packages for as little as $1
> per month out there, as well as domain name registration for less than
> $10 a year. With those kinds of prices, there's no good reason *not* to
> do it, is there?
>


Done.

Thomas
 
Reply With Quote
 
Thomas Schneider
Guest
Posts: n/a
 
      06-08-2005
Thomas Mlynarczyk schrieb:

>
> Of course, this will not work if the user has JavaScript disabled. The best
> solution for you would be indeed what kchayka suggests.
>
>


You both are right, I now changed my provider!

Thomas
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help with pix inside->outside + dmz->outside + inside->outside->dmz Jack Cisco 0 09-19-2007 01:57 AM
Writing to a frameset causes the frameset to resize xzzy ASP .Net 4 03-23-2006 10:31 PM
*{$AUTOLOAD} vs *$AUTOLOAD J Krugman Perl Misc 1 07-14-2005 06:09 AM
Frameset, Selected Index, Target Frameset relchatt@comcast.net ASP .Net 0 09-29-2004 09:37 PM
How do you make sure a frameset is loaded? I'm trying to open a frameset in a new window which shows a specific html page in a specific frame ck388 Javascript 1 09-24-2003 08:32 PM



Advertisments