TonyCronin
Programmer
Hello,
I am using a frameset on my site with topFrame, leftFrame used for menus and mainFrame used for displaying an asp page that reads dynamic data. The asp page start off as main.asp and can go to other pages depending on what the user selects - story.asp, linksasp etc. I need people to be able to send a link to one of the asp pages that goes into mainFrame frame and for the page to stay in the frameset.
I have tried using a 'keep in frames' script..
<script>
if (parent.frames.length==0)
//CHANGE "index.htm" to the URL of your main frame page
window.location.replace("index.htm")
</script>
but this loads the default mainFrame page - main.asp (i.e. goes back to the homepage) rather than keeping the asp page that was linked.
Any ideas?
Thanks for your help,
TonyC
I am using a frameset on my site with topFrame, leftFrame used for menus and mainFrame used for displaying an asp page that reads dynamic data. The asp page start off as main.asp and can go to other pages depending on what the user selects - story.asp, linksasp etc. I need people to be able to send a link to one of the asp pages that goes into mainFrame frame and for the page to stay in the frameset.
I have tried using a 'keep in frames' script..
<script>
if (parent.frames.length==0)
//CHANGE "index.htm" to the URL of your main frame page
window.location.replace("index.htm")
</script>
but this loads the default mainFrame page - main.asp (i.e. goes back to the homepage) rather than keeping the asp page that was linked.
Any ideas?
Thanks for your help,
TonyC