GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Help ! How to kill a webpage frame.... (https://gfy.com/showthread.php?t=913973)

Basic_man 07-02-2009 08:30 PM

Help ! How to kill a webpage frame....
 
Ok, here's my tricky question :

I have a site "A" that have a link to a gallery "X". I send the surfer to the gallery with a frame on the top, let's say page "B".

The thing is, I don't want the frame "B" to appear when the surfer click from the gallery "X" to the paysite (that's when I want to kill the frame).

Is there any javascript code that would do something similar? Probably something that does this :

IF page on under frame "B" change
THEN kill frame "B"

Anyone can help ?? :Oh crap

st0ned 07-02-2009 08:40 PM

Wow, this is something I have wondered for a very long time. I will keep an eye on this thread, good question. :thumbsup

Basic_man 07-02-2009 08:43 PM

Quote:

Originally Posted by st0ned (Post 16025681)
Wow, this is something I have wondered for a very long time. I will keep an eye on this thread, good question. :thumbsup

It's a very neat idea... don't know why anybody use this method to promote FHG !

st0ned 07-02-2009 08:45 PM

Quote:

Originally Posted by Basic_man (Post 16025688)
It's a very neat idea... don't know why anybody use this method to promote FHG !

Yeah it has a number of benefits, but lets not get sidetracked from the question at hand and divulge too much. :winkwink:

This actually has me thinking, I might know of a way, but assume there must be a better route to take. If nobody else comes in with a solution maybe ill put it into action and see if it works.

Basic_man 07-02-2009 08:47 PM

st0ned, I'm open to any suggestion. Would you like to share your thinking with me??

ICQ : 34916475
email is manuel [-@@@@-] simplyadultdesign.com

st0ned 07-02-2009 08:55 PM

Quote:

Originally Posted by Basic_man (Post 16025696)
st0ned, I'm open to any suggestion. Would you like to share your thinking with me??

ICQ : 34916475
email is manuel [-@@@@-] simplyadultdesign.com

Sure, let's see if anyone has any input on a way to accomplish it. I will hit you up once I am done with the current project I am working on and would have some time to try it out.

Basic_man 07-02-2009 08:57 PM

Quote:

Originally Posted by st0ned (Post 16025708)
Sure, let's see if anyone has any input on a way to accomplish it. I will hit you up once I am done with the current project I am working on and would have some time to try it out.

If you just share my your main idea, I can investigate, test it out and give you feedback and a working solution! Share share share!! ;)

Iron Fist 07-02-2009 09:05 PM

You want to break out of frames because the webmaster who coded it wants to precookie your browser because they think you'll typein the domain name and bypass the referrer?

Nah.... you figure it out :)

Basic_man 07-02-2009 09:08 PM

Quote:

Originally Posted by sharphead (Post 16025719)
You want to break out of frames because the webmaster who coded it wants to precookie your browser because they think you'll typein the domain name and bypass the referrer?

Nah.... you figure it out :)

Not really to be honest. There is nothing bad about my idea. :helpme

MediaGuy 07-02-2009 09:41 PM

Quote:

Originally Posted by Basic_man (Post 16025663)
Ok, here's my tricky question :

I have a site "A" that have a link to a gallery "X". I send the surfer to the gallery with a frame on the top, let's say page "B".

The thing is, I don't want the frame "B" to appear when the surfer click from the gallery "X" to the paysite (that's when I want to kill the frame).

Is there any javascript code that would do something similar? Probably something that does this :

IF page on under frame "B" change
THEN kill frame "B"

Anyone can help ?? :Oh crap

I must be dense because I don't quite understand...

Click a link in frame "B" to make the whole browser go to the landing? use target="_top" no?

:D

Basic_man 07-02-2009 09:51 PM

Quote:

Originally Posted by MediaGuy (Post 16025787)
I must be dense because I don't quite understand...

Click a link in frame "B" to make the whole browser go to the landing? use target="_top" no?

:D

Not exactly. I want to close frame "B" when the surfer click a link in the gallery (like goes to paysite).

Basic_man 07-03-2009 07:25 AM

Nobody? Helllllllllppppppppp!

Basic_man 07-03-2009 10:16 AM

Bumpy bump!

Basic_man 07-05-2009 08:32 AM

Bump! Still looking for a solution!

Basic_man 07-12-2009 06:49 PM

Still wondering! I can't sleep at night because of this... please Helpppppppppppppp! :)

SmokeyTheBear 07-12-2009 09:28 PM

you could do something like setting the frame width and height to 0 onclick

SmokeyTheBear 07-12-2009 09:31 PM

nvr mind i get the question now i think , you want to control how your page acts based on a page you have no control over

SmokeyTheBear 07-13-2009 12:13 AM

there is a way to do it with javascript kinda but its a bit extensive. how important is it ?

SmokeyTheBear 07-13-2009 01:16 PM

msg me..

BestXXXPorn 07-13-2009 01:18 PM

You can set all outgoing links to target the parent ...

BestXXXPorn 07-13-2009 01:19 PM

or... top.location.href in javascript...

BestXXXPorn 07-13-2009 01:25 PM

If frame A is your frame and a user clicks to a different site where you leave frame A up and frame B's source is some other site...

Then you could setup javascript to observe for domloaded on frame B and then fire something to change the targets in that frame like:

$$('a').each(function(element) {
element.target="_parent";
});

Basic_man 07-13-2009 06:38 PM

Quote:

Originally Posted by BestXXXPorn (Post 16059462)
You can set all outgoing links to target the parent ...

The thing is I don't have access to the gallery on the child frame...!

BestXXXPorn 07-14-2009 08:40 AM

This requires the prototype library as I don't code anything without it :

$('childFrameId').observe('dom:loaded', function() {
$$('#childFrameId a').each(function(element) {
element.target="_parent";
});
});

Slap an ID on that child frame and replace childFrameId with whatever you name it. I haven't tested that but it should work just fine :)

Hope that helps!

Yay 100 posts :P


All times are GMT -7. The time now is 07:02 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123