471,338 Members | 1,020 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,338 software developers and data experts.

Javascript help needed

I've got a page with links to panoramic images and use javascript to
open a separate window when the link to a specific panoramic image is
clicked.

Problem is that it's not working when I visit the site with my PC. But
it works fine when using my Mac.

On my PC, I get a browser error that the page is not found.

Could someone take a look at my source code and tell me what might be
causing this problem?

I'm not very fluent with javascript and am having a difficult time
troubleshooting this.

the site is http://www.cnyweddings.com/pano/index.php

One other thing... currently the links are opening another window, but
it'd probably be really cool to have the link replace the existing image
on the index page. But I'm not sure how to accomplish that. the code
fragments I've seen on HotScripts.com and other places don't quite seem
to fit my needs.

Here is the code in the Head...

<script language="JavaScript">
<!--
function winOpen(url){
width= "500";
height="600";
optionString =
"scrollbars=yes,status=yes,menubar=no,resizable=ye s,location=no,toolbar=n
o,width=" + width + ",height=" + height;
psWindow = this.window.open(url,"",optionString );
}
//-->
</script>

Here is the code in the body...

<ul>
<li><a
href="javascript:winOpen('http://www.cnyweddings.com/pano/statler_terrace
..html')">Ithaca - Statler Hotel Terrace Dining Room</a></b></li>
<li>
<a href="javascript:winOpen('lakewatch_inn.php')"">It haca - Lakewatch
Inn</a></b></li>
<li>
<a href="javascript:winOpen('ginny_lee.php')">Lodi -Wagner Vineyard
Ginny Lee Cafe Panorama</a></b></li>
<li>
<a href="javascript:winOpen('statler_terrace.php')">I thaca - Statler
Hotel
Terrace Dining Room</a></b></li>
<li>
<a href="javascript:winOpen('logan_ridge.php')">Lodi - Logan Ridge
Winery</a></b></li>
<li></li>
</ul>

--

--

Jul 23 '05 #1
3 2607
In article <nospam-9E93CB.11314315072004@syrcnyrdrs-03-
ge0.nyroc.rr.com>, no****@mail.invalid enlightened us with...
I've got a page with links to panoramic images and use javascript to
open a separate window when the link to a specific panoramic image is
clicked.

Problem is that it's not working when I visit the site with my PC. But
it works fine when using my Mac.


Works fine with my PC with both Netscape 7 and IE6.

--
--
~kaeli~
Why did kamikaze pilots wear helmets?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2
Michael Erb wrote:
Problem is that it's not working when I visit the site with my PC. But
it works fine when using my Mac.

On my PC, I get a browser error that the page is not found. <snip>
Here is the code in the Head...

<script language="JavaScript">
<!--
function winOpen(url){
width= "500";
height="600";
optionString =
"scrollbars=yes,status=yes,menubar=no,resizable=ye s,location=no,toolbar=n
o,width=" + width + ",height=" + height;
psWindow = this.window.open(url,"",optionString );
}
//-->
</script>
Try:
<script type="text/javascript">
function winOpen(url){
w= 500;
h=600;
optionString =
"scrollbars,status,resizable,width=" + w + ",height=" + h;
psWindow = window.open(url,"",optionString );
}
</script>


Here is the code in the body...

<ul>
<li><a
href="javascript:winOpen('http://www.cnyweddings.com/pano/statler_terrace
.html')">Ithaca - Statler Hotel Terrace Dining Room</a></b></li>
<li>


Try:
<a href = "http://www.cnyweddings.com/pano/statler_terrace.html" onclick =
"winOpen('http://www.cnyweddings.com/pano/statler_terrace.html');
return false;">Ithaca - Statler Hotel Terrace Dining Room</a>

Mick
Jul 23 '05 #3
Thanks to everyone who replied. I actually found some new code which I
put into the site this afternoon and it seems to have fixed whatever the
problem was. I'm still not sure what was causing the glitch, but it
does seem to be working now.

Michael

In article <MP************************@nntp.lucent.com>,
kaeli <ti******@NOSPAM.comcast.net> wrote:
In article <nospam-9E93CB.11314315072004@syrcnyrdrs-03-
ge0.nyroc.rr.com>, no****@mail.invalid enlightened us with...
I've got a page with links to panoramic images and use javascript to
open a separate window when the link to a specific panoramic image is
clicked.

Problem is that it's not working when I visit the site with my PC. But
it works fine when using my Mac.


Works fine with my PC with both Netscape 7 and IE6.


--

Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.