Closed Thread Icon

Topic awaiting preservation: Popup reunion? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8730" title="Pages that link to Topic awaiting preservation: Popup reunion? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Popup reunion? <span class="small">(Page 1 of 1)</span>\

 
Eric001
Bipolar (III) Inmate

From: Chicago
Insane since: Jan 2003

posted posted 06-22-2003 04:29

Hi all,

Im perplexed. I am finding that some web pages that are actually small popups are getting indexed on search engines. When people go to these pages, is there a way to make them appear along with the parent as they were meant to appear?

thanks much

Eric

Nevel
Bipolar (III) Inmate

From: Amsterdam
Insane since: Jun 2002

posted posted 06-22-2003 13:47

Yes, there is. You can check whether the window of the "popup-page" has got an opener. Since that might not be enough info, you might want to check for the location of the opener. The following script checks whether the page is loaded inside a popup, and if so, whether the opening page really is the page that should be opening it:

<html>
<head>
<script type="text/javascript">
var openerLoc = 'locationOfOpeningWindow.htm'; //change this value to the location of the opening window
if((typeof window.opener == 'undefined') &#0124; &#0124; (window.opener.location.href != openerLoc))
location.href = openerLoc;
</script>
</head>
<body>
content
</body>
</html>

Eric001
Bipolar (III) Inmate

From: Chicago
Insane since: Jan 2003

posted posted 06-23-2003 01:23

OK-

so just so I understand. The location of the Opening Window is the parent window? Im guessing. Should I use the relative url or the full url. I tried it using the relative url and it didnt seem to work.

here it is on one of the pages. www.secret-beach.com/lyrics1.html

The parent page is www.secret-beach.com/music2.html



Nevel
Bipolar (III) Inmate

From: Amsterdam
Insane since: Jun 2002

posted posted 06-23-2003 10:37

You should use the full URL since the location.href is a full URL as well.
And I'm afraid you guessed wrong, an opener is not a parent.
In a multi-frame site, the window of the page containing frames is the parent window, and the frame-windows are "children". That's why a "child-window" can call it's outer window through "parent".

Eric001
Bipolar (III) Inmate

From: Chicago
Insane since: Jan 2003

posted posted 06-24-2003 06:39

I changed it to the full url, but it still isnt doing it. This is the code on the page:

<script type="text/javascript">
var openerLoc = 'http://www.secret-beach.com/music2.html';
if((typeof window.opener == 'undefined')

Nevel
Bipolar (III) Inmate

From: Amsterdam
Insane since: Jun 2002

posted posted 06-25-2003 19:06

Neh, I doubt your dirty trick will frustrate our little redirect-script

Maybe you'll have to place the script inside of the body-tag, since js might not immediately recognize its referer.
Now it should be quite easy to do some testing. Just place this before the other js-code:

alert('output'); //check whether this line is reached
alert('referrer = ' + document.referrer); /*output the referrer => if this doesn't work, but the previous alert does, you can be sure js doesn't recognize its referrer at this moment in time*/

Eric001
Bipolar (III) Inmate

From: Chicago
Insane since: Jan 2003

posted posted 06-26-2003 06:36

this is odd. I changed the script but nothing happened, also the alerts didnt show.

So I took the alerts out just to see what would happen, but there still wasnt any change.

What could it be?

Eric

Nevel
Bipolar (III) Inmate

From: Amsterdam
Insane since: Jun 2002

posted posted 06-26-2003 11:38

Hmz, it's strange the alerts doesn't show at all. Seems like the code isn't reached, then.
Maybe it's due to a previous error. Your HTML says:
<BODY BGCOLOR="#000000" text="FFFF99" onBlur="setTimeout=('window.focus()',1000)">
This produces an "Object doesn't support this action" error. It should be:
onblur="setTimeout('window.focus()', 1000)"

And maybe the referrer trick doesn't work because of this location: http://www.secret-beach.com/cgi-bin/frame.cgi?http%3A//www.secret-beach.com/music2.html
which is different from http://www.secret-beach.com/music2.html

You could, however, change your check to something like this

var openerLoc = 'www.secret-beach.com/music2.html';
if((typeof window.opener == 'undefined')

Eric001
Bipolar (III) Inmate

From: Chicago
Insane since: Jan 2003

posted posted 06-27-2003 07:22

hmmm...

I tried the new script with the alerts too. But no change. I keep getting a syntax error on line 18, character 44. I think that is where the two vertical bars are in the code. The

Nevel
Bipolar (III) Inmate

From: Amsterdam
Insane since: Jun 2002

posted posted 06-27-2003 13:29

Oops,

It's not supposed to say

Eric001
Bipolar (III) Inmate

From: Chicago
Insane since: Jan 2003

posted posted 06-28-2003 03:25

I dont see the difference - are they different characters?

???

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 06-28-2003 04:31

Thats actually a UBB thing it, it seperates two pipes and adds a space between them

If you cut and paste code from the board you'll need to remove the space



.:[ Never resist a perfect moment ]:.

[This message has been edited by bitdamaged (edited 06-28-2003).]

Eric001
Bipolar (III) Inmate

From: Chicago
Insane since: Jan 2003

posted posted 06-28-2003 07:04

ahh haa!

Well the script does work now. Both alerts come up. And the music2.html page loads in IE. but in Netscape 6.2 - the music2.html page does not load. Instead the lyrics1 page shows up. Should I try going back to the first version of the script? Also - is there a way to make not only the music2 page load up, but also the popup that was originally called too?

thanks much again!

Eric

Eric001
Bipolar (III) Inmate

From: Chicago
Insane since: Jan 2003

posted posted 06-29-2003 00:37

Interesting -

the script works when I type in the url of the popup in my browser, but not when I click on the link to lyrics1.html that is posted above. The referrer url is different in that case
Or I guess there isnt a referrer URL when I type it in.


still working.......

« BackwardsOnwards »

Show Forum Drop Down Menu