Click to See Complete Forum and Search --> : Javascript pop up window will NOT show the title of the site


unregistered
10-14-2003, 04:13 PM
i been going back and forth for a couple weeks and my client is gettin pissed.

when you launch the site www.cannonbeachcamping.com theres a link to launch a javascript window..
the site itself is a frameset and i have gone thru all the documents and they all have titles assigned to them.

for some reason it wont show up in the window title..it just says untitled document.

i have tried several scripts but none seem to be helping..is this because of framesets or whats the deal?

Khalid Ali
10-14-2003, 04:29 PM
you will need to set the title in the frameset page or you can do thi sdynamically from the js function wehre you open this page e.g

function openpopup(){
var popurl="searanch/home.html"
winpops=window.open(popurl,"","width=875,height=600,")
winpops.document.title = "Your pages title here";
}

unregistered
10-14-2003, 04:43 PM
awesome..thanks for your prompt reply khalid,
no that didnt work either...heres a copy of the code as it looks on the page.



<html>

<head>

<title>Cannon Beach Sea Ranch RV Park</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">



</head>



<body bgcolor="66CC66" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">

<div align="center"> <img src="imgs/largehorseanimation.gif" width="400" height="263"><br>

<br>

<a href="javascript:openpopup()"><font size="3" face="Arial, Helvetica, sans-serif" color="#FFFFFF">click

here to enter</font></a> <br>

<script>



//Popup Window Script

//By JavaScript Kit (http://javascriptkit.com)

//JavaScript tutorials and over 400+ free scripts
function openpopup(){
var popurl="searanch/home.html"
winpops=window.open(popurl,"","width=875,height=600,")
winpops.document.title = "Cannon Beach Camping";
}
</script>

<font face="Arial, Helvetica, sans-serif" size="2">Welcome to Sea Ranch RV &amp;

Stables</font> <br>

<font size="2" face="Arial, Helvetica, sans-serif">Your Tent, RV, Cabin Destination

in Cannon Beach Oregon</font><br>

<font face="Arial, Helvetica, sans-serif" size="1">designed for internet explorer

users/macromedia flash,</font> <br>

<font face="Arial, Helvetica, sans-serif" size="2">&copy; 2003 all rights reserved

by SRRVS</font><br>

<font size="1">designed by FS Design</font><br>

</div>

</body>

</html>

Khalid Ali
10-14-2003, 05:10 PM
This is the piece of code that I tested it with

<script type="text/javascript">
<!--
function openpopup(){
var popurl="index.html"
winpops=window.open(popurl,"","width=875,height=600,")
winpops.document.title = "Cannon Beach Camping";
}
//-->
</script>
</head>

<body>
<a href="#" onclick="openpopup();return false;">Click</a>
</body>

where th eurl (index.html) is a frameset page that has 3 frames and one of the frames has further 2 frames,it shows the title in the title bar...
since I can't see much of your code,,can't say much

unregistered
10-14-2003, 09:34 PM
I wish it did...i feel like an idiot but that doesnt seem to be showing up either...now i get an error on page in the bottom of the window bars as well. i checked the frameset and its one row with 2 columns and i am not sure what you mean by the "frameset thingy...basically i have an index page with just an gif animation and a link to launch a frameset that is searanch/home.html is loaded into the popup. the left side is known as left.html and the right side starts with a welcome.html page. All the pages have been titled in dreamweaver and i see them there in the code...so i know its not because they arent titled..i think its this javascript thing which i am not too knowledgable on...heres what my current code on the index.html page looks like now.


html>

<head>

<title>Cannon Beach Sea Ranch RV Park</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">


<script type="text/javascript">
<!--
function openpopup(){
var popurl="searanch/home.html"
winpops=window.open(popurl,"","width=875,height=600,")
winpops.document.title = "Cannon Beach Camping";
}
//-->
</script>

</head>



<body bgcolor="66CC66" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">

<div align="center"> <img src="imgs/largehorseanimation.gif" width="400" height="263"><br>

<br>

<a href="#" onclick="openpopup();return false;">click to launch site</a><br>

Khalid Ali
10-14-2003, 10:05 PM
I fon't think I can help you any further unless I see the code,can you sip up all the html relaed fiels and upload it here?

unregistered
10-14-2003, 10:11 PM
i am going to post the code for the home.html page that contains the frameset in the next 2 post...hopefully that will be enough info for you.

<html>

<head>

<title>Cannon Beach Sea Ranch RV Park</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">


<script type="text/javascript">
<!--
function openpopup(){
var popurl="searanch/home.html"
winpops=window.open(popurl,"","width=875,height=600,")
winpops.document.title = "Cannon Beach Camping";
}
//-->
</script>

</head>



<body bgcolor="66CC66" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">

<div align="center"> <img src="imgs/largehorseanimation.gif" width="400" height="263"><br>

<br>
<a href="#" onclick="openpopup();return false;"><font size="2" face="Arial, Helvetica, sans-serif">click
to launch site</font></a><br>
<font face="Arial, Helvetica, sans-serif" size="2">Welcome to Sea Ranch RV &amp;
Stables</font> <br>

<font size="2" face="Arial, Helvetica, sans-serif">Your Tent, RV, Cabin Destination

in Cannon Beach Oregon</font><br>

<font face="Arial, Helvetica, sans-serif" size="1">designed for internet explorer

users/macromedia flash,</font> <br>

<font face="Arial, Helvetica, sans-serif" size="2">&copy; 2003 all rights reserved

by SRRVS</font><br>

<font size="1">designed by FS Design</font><br>

</div>

</body>

</html>

unregistered
10-14-2003, 10:12 PM
<html>
<head>
<title>searanch stables and camping</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v2.0
if (document.MM_swapImgData != null)
for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
}

function MM_preloadImages() { //v2.0
if (document.images) {
var imgFiles = MM_preloadImages.arguments;
if (document.preloadArray==null) document.preloadArray = new Array();
var i = document.preloadArray.length;
with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
preloadArray[i] = new Image;
preloadArray[i++].src = imgFiles[j];
} }
}

function MM_swapImage() { //v2.0
var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
(objStr.indexOf('document.all[') ==0 && document.all ==null))
objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
obj = eval(objStr);
if (obj != null) {
swapArray[j++] = obj;
swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
obj.src = MM_swapImage.arguments[i+2];
} }
document.MM_swapImgData = swapArray; //used for restore
}
//-->
</script>
<style type="text/css">
<!--
.linkstyle { font-family: Arial, Helvetica, sans-serif; font-size: 11pt; font-style: normal; font-weight: normal; font-variant: normal; text-decoration: underline}
-->
</style>
<meta name="keywords" content="cannon beach camping, cannon beach, sea ranch rv park and stables, searanch, sea ranch, oregon horses, oregon camping, oregon rv, rv oregon, haystack rock, horse rides oregon">
<meta name="description" content="Welcome to Cannon Beach Sea Ranch RV Park & Stables- your camping, rv, cabin destination at cannon beach oregon.">
<meta name="keywords" content="cannon beach camping, cannon beach, sea ranch rv park and stables, searanch, sea ranch, oregon horses, oregon camping, oregon rv, rv oregon, haystack rock, horse rides oregon">
<meta name="description" content="description">
<meta name="Cannon Beach Camping" content="Cannon Beach Camping">
</head>

<body bgcolor="#66CC66" onLoad="MM_preloadImages('../imgs/camping_bt.gif','#1051044412709');MM_preloadImages('../imgs/stable_bt.gif','#1051044427080');MM_preloadImages('../imgs/gallery_bt.gif','#1051044443644');MM_preloadImages('../imgs/contacts_bt.gif','#1051049654897');MM_preloadImages('../imgs/map_bt.gif','#1064884064552')" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
<!--#include virtual="" -->
<table border="0" cellspacing="0" cellpadding="0" align="left" vspace="0" hspace="0" width="116">
<tr>
<td width="116" height="0" colspan="2"><a href="main.html" target="main"><img src="../imgs/horse.gif" border="0"></a></td>
</tr>
<tr>
<td colspan="2"><a href="SeaRanchCabins.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('document.Image3','document.Image3','../imgs/camping_bt.gif','#1051044412709')" target="main"><img name="camping" border="0" src="../imgs/camping_top.gif" width="116" height="31"></a></td>
</tr>
<tr>
<td colspan="2"><a href="SeaRanch_Stables.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('document.Image4','document.Image4','../imgs/stable_bt.gif','#1051044427080')" target="main"><img name="stables" border="0" src="../imgs/stable_top.gif" width="116" height="31"></a></td>
</tr>
<tr>
<td colspan="2"><a href="../IMG/SeaRanch_Photo.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('document.Image5','document.Image5','../imgs/gallery_bt.gif','#1051044443644')" target="main"><img name="gallery" border="0" src="../imgs/gallery_top.gif" width="116" height="31"></a></td>
</tr>
<tr>
<td colspan="2"><a href="SeaRanchContacts.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('document.Image6','document.Image6','../imgs/contacts_bt.gif','#1051049654897')" target="main"><img name="contact" border="0" src="../imgs/contacts_top.gif" width="116" height="31"></a></td>
</tr>
<tr>
<td colspan="2"><a href="SeaRanchMap.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('document.Image7','document.Image7','../imgs/map_bt.gif','#1064884064552')" target="main"><img name="map" border="0" src="../imgs/map_top.gif" width="116" height="31"></a></td>
</tr>
<tr valign="top">
<td width="116" class="linkstyle" colspan="2">
<div align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#3,0,0,0" width="60" height="20">
<param name="SRC" value="email.swf">
<embed src="email.swf" pluginspage="http://www.macromedia.com/shockwave/download/" type="application/x-shockwave-flash" width="60" height="20">
</embed>
</object></div>
</td>
</tr>
<tr valign="top">
<td width="116" class="linkstyle" colspan="2">
<div align="center"></div>
</td>
</tr>
<tr valign="top">
<td width="116" class="linkstyle" colspan="2"></td>
</tr>
<tr valign="top">
<td width="116" class="linkstyle" colspan="2"></td>
</tr>
<tr valign="top">
<td width="116" class="linkstyle" colspan="2"></td>
</tr>
<tr valign="top">
<td width="116" class="linkstyle" colspan="2"></td>
</tr>
<tr valign="top">
<td width="116" class="linkstyle" colspan="2"></td>
</tr>
</table>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</body>
</html>

unregistered
10-14-2003, 10:13 PM
<html>
<head>
<title>Cannon Beach Camping</title>
<meta name="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.mainbodytext { font-family: Arial, Helvetica, sans-serif; font-size: 11pt; font-style: normal; font-weight: normal; font-variant: normal; color: #FFFFFF}
-->
</style><link rel="stylesheet" href="../css/scrollbar.css"></head>

<body bgcolor="#66CC66">
<table border="0" width="61%" height="0" cellpadding="0" cellspacing="0" vspace="0" hspace="0" align="left">
<tr>
<td width="0" height="0"><img src="../imgs/ranchrvstable.gif" height="76" hspace="0"></td>
<td width="0" height="0"><img src="../imgs/ranchrvstable_b.gif" height="76" border="0"></td>
</tr>
<tr>
<td width="0" height="0"><img src="../imgs/main_left.gif"></td>
<td width="0" height="0"><img src="../imgs/welcome_right.gif"></td>
</tr>
<tr>
<td width="0" height="0" colspan="2"><img src="../imgs/middletest.gif" width="670" height="202"></td>
</tr>
<tr>
<td valign="top"><span class="mainbodytext"><b><span class="mainbodytext"><br>
</span></b></span></td>
<td><img src="../imgs/welcomtextbottom.gif"></td>
</tr>
<tr>
<td width="17%">&nbsp;</td>
<td width="0" height="0">&nbsp;</td>
</tr>
</table>
</body>
</html>

unregistered
10-15-2003, 12:17 PM
anyone? help please