![]() |
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 |
Wow, this is something I have wondered for a very long time. I will keep an eye on this thread, good question. :thumbsup
|
Quote:
|
Quote:
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. |
st0ned, I'm open to any suggestion. Would you like to share your thinking with me??
ICQ : 34916475 email is manuel [-@@@@-] simplyadultdesign.com |
Quote:
|
Quote:
|
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 :) |
Quote:
|
Quote:
Click a link in frame "B" to make the whole browser go to the landing? use target="_top" no? :D |
Quote:
|
Nobody? Helllllllllppppppppp!
|
Bumpy bump!
|
Bump! Still looking for a solution!
|
Still wondering! I can't sleep at night because of this... please Helpppppppppppppp! :)
|
you could do something like setting the frame width and height to 0 onclick
|
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
|
there is a way to do it with javascript kinda but its a bit extensive. how important is it ?
|
msg me..
|
You can set all outgoing links to target the parent ...
|
or... top.location.href in javascript...
|
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"; }); |
Quote:
|
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