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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frameset not appearing when previewing site

Status
Not open for further replies.

JerJag

Technical User
Jun 27, 2005
6
US
I am using a Frameset I created consisting of three frames.
All frames are saved and are located in the local root folder and they appear in the window correctly as I build the frameset.
The navigation links to this frameset are all correctly pointing to them in the root folder. But when I go to preview the site and hit on the links, the window comes up blank. It worked previously and I transfered the site to another computer. As soon as I re-linked the site to the root folder on the new computer, I stopped seeing the frameset content.
Please help, my wall is looking like the lunar surface from all of my head banging.
J
 
Upload all of the individual files to your server? Post the frameset code here.

Cheech

[Peace][Pipe]
 
Here is the framset code

<html>
<head>
<title>header_area</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}

function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" onLoad="MM_preloadImages('JP_Assets/Nav1B.gif','JP_Assets/Nav3B.gif','JP_Assets/Nav4B.gif')">
<table width="720" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="288" valign="top" rowspan="3"><img src="JP_Assets/Header_logo_area.jpg" width="288" height="100" usemap="#Map" border="0"></td>
<td height="77" valign="top" colspan="4"><img src="JP_Assets/Header_open_area.jpg" width="432" height="77"></td>
</tr>
<tr>
<td height="23" width="144" valign="top"><a href="profile.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('profile','','JP_Assets/Nav1B.gif',1)"><img name="profile" border="0" src="JP_Assets/Nav1A.gif" width="144" height="23"></a></td>
<td valign="top" width="93"><a href="portfolio_frame.html"><img src="JP_Assets/Nav2B.gif" width="93" height="23" border="0"></a></td>
<td width="87" valign="top"><a href="available.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('available','','JP_Assets/Nav3B.gif',1)"><img name="available" border="0" src="JP_Assets/Nav3A.gif" width="87" height="23"></a></td>
<td width="108" valign="top"><a href="contact.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('contact','','JP_Assets/Nav4B.gif',1)"><img name="contact" border="0" src="JP_Assets/Nav4A.gif" width="108" height="23"></a></td>
</tr>
<tr>
<td height="2"></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td valign="top" height="60"><img src="JP_Assets/spacer_left.gif" width="288" height="60"></td>
<td colspan="4" valign="top"><img src="JP_Assets/spacer_right.gif" width="432" height="60"></td>
</tr>
</table>
<map name="Map">
<area shape="rect" coords="14,8,97,89" href="index.html" target="_parent">
</map>
</body>
</html>
 
nope thats your header_area code

[Peace][Pipe]
 
Cheech, my apologies for wasting your time but I opened the Frameset file I created and copied the code out and that is what you see above. I'm new to Framesets so please bare with me. Where would this code be if not in the code window? In the meantime, I uploaded all of my files to the server (from the original computer) and they seem to work fine now, though I would like to understand what I was doing wrong when I tried to transfer it to my home computer.

I have a related issue
The navigation I have built into this Frameset file, when uploaded, does not work. As I run my cursor over each nav area, I can see it indicate the proper linked page but when I click on the nav. it keeps the original Framset window. I had the nav linked destination set up to -self. Should it be - parent?
The nav is to go to three other links from portfolio_frame.html
profile.html, available.html and contact.html
Am I overlooking something simple?

Here is the code cut from the file highlighting the nav bar

<td height="23" width="144" valign="top"><a href="profile.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('profile','','JP_Assets/Nav1B.gif',1)"><img name="profile" border="0" src="JP_Assets/Nav1A.gif" width="144" height="23"></a></td>
<td valign="top" width="93"><a href="portfolio_frame.html"><img src="JP_Assets/Nav2B.gif" width="93" height="23" border="0"></a></td>
<td width="87" valign="top"><a href="available.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('available','','JP_Assets/Nav3B.gif',1)"><img name="available" border="0" src="JP_Assets/Nav3A.gif" width="87" height="23"></a></td>
<td width="108" valign="top"><a href="contact.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('contact','','JP_Assets/Nav4B.gif',1)"><img name="contact" border="0" src="JP_Assets/Nav4A.gif" width="108" height="23"></a></td

Thank you again for all your patience and help.
Lumpy
 
lumpy no problems, your frameset page will have something like this in it.
Code:
<frameset cols="80,*" frameborder="NO" border="0" framespacing="0">
  <frame src="page1.htm" name="leftFrame" scrolling="NO" noresize>
  <frame src="page2.htm" name="mainFrame">
</frameset>
Then the code above should have the target for the links et to the frame you wish to be loaded ie..
Code:
<a href="profile.html" target="mainFrame" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('profile','','JP_Assets/Nav1B.gif',1)"><img name="profile" border="0" src="JP_Assets/Nav1A.gif" width="144" height="23"></a>

Cheech

[Peace][Pipe]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top