Click to See Complete Forum and Search --> : email links to sites using frames


tommy1876
01-21-2003, 07:33 AM
My site uses frames. The problem I am having with this is that when I send someone an email link to a specific html page on the site the page is displayed without the heading and menu which are both frames. Is there any way to resolve this?

What are my alternatives to using frames apart from copying the menus onto each page?

Thanks.

pyro
01-21-2003, 07:43 AM
Here is a thread that will tell you how...

http://forums.webdeveloper.com/showthread.php?s=&threadid=2197

swon's method (second post) is the best bet, if you have PHP. If not, my method (third post) is good. If you use mine, remember to specify a <noscript> frameset, for users without javascript...

tommy1876
01-22-2003, 06:51 AM
Thanks for your help Pyro. I'm almost there but not quite.
My version of the link you sent me is
<a href="http:\\gv06edwa\intranet\home.htm?scn.htm">Force page into frameset</a>

When I use this link, scn.htm briefly displays within the frames but then changes to home.htm which is my index page.

Below is a list of my code for home.htm. I'd appreciate any help you could give me.

Tommy.

<html>
<head>
<title>Student Awards Agency for Scotland Intranet Site</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">

<!--Hide
linkURL = "home.htm" //set the default URL to load if there was no referrer
if (top.location.href) { //to be compatible with IE use top.location.href instead of parent.document.URL
pageURL = top.location.href //set the top.location.href to parentURL
if (pageURL.indexOf('?') != -1) { //Check for the referring page
linkURL = pageURL.substring (pageURL.indexOf('?')+1, pageURL.length) //parse the top.location.href to remove everything before the ?
}
}
document.write('<frameset cols="140,*" frameborder="NO" border="0" framespacing="0" rows="*">')
document.write('<frame name="navFrame" src="nav.htm" noresize scrolling="no" marginwidth="0" marginheight="0">')

document.write('<frameset rows="15,*" frameborder="NO" border="0" framespacing="0" cols="*">')
document.write('<frame name="padFrame" src="pad.htm" scrolling="NO" noresize marginwidth="0" marginheight="0">')

document.write('<frameset rows="40,*" frameborder="NO" border="0" framespacing="0" cols="*">')
document.write('<frame name="topFrame" src="title.htm" scrolling="NO" noresize marginwidth="0" marginheight="0">')

document.write('<frameset rows="35,*" frameborder="NO" border="0" framespacing="0" cols="*">')
document.write('<frame name="headerFrame" src="t_mainhome.htm" scrolling="NO" noresize marginwidth="5" marginheight="0">')

document.write('<frame name="mainFrame" src="' + linkURL + '"NAME="homepage" noresize scrolling="AUTO" marginwidth="20" marginheight="20">')

document.write('<\/frameset>')
document.write('<\/frameset>')
document.write('<\/frameset>')
document.write('<\/frameset>')
document.write('<noframes>')
document.write('<body bgcolor="#FFFFFF" text="#000000">')
document.write('<\/body>')
document.write('<\/noframes>')

//End hide-->
</script>

</head>

</html>

pyro
01-22-2003, 07:17 AM
Post a link to your site...

pyro
01-22-2003, 07:19 AM
Ahh..just saw it was an intranet...Never mind :) Maybe you could zip up the relavant pages and post it that way...?

tommy1876
01-22-2003, 06:05 PM
Here is the files. home.htm is the index page and scn.htm is an example of a page I may want to link directly to.