Forum Moderators: mack
Basically is someone tries to click on a link to a department of my page, they wind up with the page in the whole window! The problem is that when they wind up there, the left and top frames are missing!
I have added code to redirect people to my main url... but that just plops people back at my main page!
Is there a way to redirect them again so that the original page they were trying to get to can be popped up in the correct frame?
For example...
If from a search engine, you clicked the following link...
[example.com...]
It would bring you to that part of my page and it wouldn't be in a frame like it's supposed to... So I added this code to all of my "Department" pages so that if you click on a link like this from a search engine, it redirects you to my MAIN page with the correct frame order...
<SCRIPT LANGUAGE="JavaScript">
<!--
if (top == self) self.location.href = "http://www.example.com/index.htm";
// -->
</SCRIPT>
Now, this is great because people get sent back to the main page, but.......
How do I make it so they get send back to the main page, and then the original link they wanted gets opened up in the Main Frame on my webpage (I want them to be redirected to department whatever, but I wan't the department to open in the correct frame, not the whole page...)?
Is it possible?
I hope I am explaining this correctly...
[edited by: Marcia at 10:57 pm (utc) on Oct. 16, 2002]
this.sFrameHTML = '<put the framset in here, dynamically defining the page you are on>';
document.location.href="javascript:this.sFrameHTML
but where you have <put the framset in here, dynamically defining the page you are on> , what is the frameset defined as? the frame is called "MAIN" but it is in www.tekjerk.com/index.htm
I guess I am asking what to put in the <put frameset here> area...
If you are directed to my site from say Yahoo to say...
[example.com...]
I need that to get bumped into a different directory all together...
I need to have it put into the frame called "Main" on the page...
[example.com...] (into the MAIN frame)
I guess I need to find out how you direct an HTML file to be opened on another page into a target frame on a completly different page...
[edited by: Woz at 7:34 am (utc) on Oct. 17, 2002]
[edit reason] TOS #14 [/edit]