473,390 Members | 1,399 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,390 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 2713
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.