Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code Top frame add prefix to link in bottom frame?

Status
Not open for further replies.

jaslr

Programmer
Aug 16, 2001
67
AU
I don't know if this is possible and what I want to do is actually quite blurry in my head I do apologise for this. I just know that if it's possible it's to be done with javascript.

I'll try and articulate.

I have some links <a href=" site</a> which I have put on my own homepage. However whilst at work that site is blocked, however that site has a www2 mirror which isn't blocked. So easily enough I can just change it to <a href=" Site</a> however since the site is a news site the links ON that page change so often that I have to copy the link location to my address bar and change the www2 everytime I want to access a link.

My question: By adding a top frame from the homepage, what do I code into the top frame that can change the link on the bottom frame (bottom frame is a news site I can't change the code to it) so it can change it from to
Any help? I hope this is possible btw.
 
let's clarify something: this site that is blocked is on a different domain than the "fix" page you intend to view it through at work?

e.g.
[tt]
+-----------------------------+
| |
|-----------------------------|
| |
| |
| |
| |
| |
| |
| |
| |
+-----------------------------+
[/tt]

if this is the case, you're probably sol, 'cause javascript does not allow cross-domain scripting for security reasons

=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
 
I am not exactly clear what you want but maybe you need to use <base href=" in the <head> of one site and then <base href=" in the other. In this way you will be able to use relative links which will then be prefixed by the base href when they are clicked.

Clive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top