473,320 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 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 2710
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Sue | last post by:
After finishing up my first quarter JavaScript on 12/12/03, I decided to improve character checking on my project. In my project I only had to do very basic validation. Therefore, I only had one...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.