473,769 Members | 5,877 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="JavaS cript">
<!--
function winOpen(url){
width= "500";
height="600";
optionString =
"scrollbars=yes ,status=yes,men ubar=no,resizab le=yes,location =no,toolbar=n
o,width=" + width + ",height=" + height;
psWindow = this.window.ope n(url,"",option String );
}
//-->
</script>

Here is the code in the body...

<ul>
<li><a
href="javascrip t:winOpen('http ://www.cnyweddings .com/pano/statler_terrace
..html')">Ithac a - Statler Hotel Terrace Dining Room</a></b></li>
<li>
<a href="javascrip t:winOpen('lake watch_inn.php') "">Ithaca - Lakewatch
Inn</a></b></li>
<li>
<a href="javascrip t:winOpen('ginn y_lee.php')">Lo di -Wagner Vineyard
Ginny Lee Cafe Panorama</a></b></li>
<li>
<a href="javascrip t:winOpen('stat ler_terrace.php ')">Ithaca - Statler
Hotel
Terrace Dining Room</a></b></li>
<li>
<a href="javascrip t:winOpen('loga n_ridge.php')"> Lodi - Logan Ridge
Winery</a></b></li>
<li></li>
</ul>

--

--

Jul 23 '05 #1
3 2737
In article <nospam-9E93CB.11314315 072004@syrcnyrd rs-03-
ge0.nyroc.rr.co m>, no****@mail.inv alid 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="JavaS cript">
<!--
function winOpen(url){
width= "500";
height="600";
optionString =
"scrollbars=yes ,status=yes,men ubar=no,resizab le=yes,location =no,toolbar=n
o,width=" + width + ",height=" + height;
psWindow = this.window.ope n(url,"",option String );
}
//-->
</script>
Try:
<script type="text/javascript">
function winOpen(url){
w= 500;
h=600;
optionString =
"scrollbars,sta tus,resizable,w idth=" + w + ",height=" + h;
psWindow = window.open(url ,"",optionStrin g );
}
</script>


Here is the code in the body...

<ul>
<li><a
href="javascrip t: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('h ttp://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************ ************@nn tp.lucent.com>,
kaeli <ti******@NOSPA M.comcast.net> wrote:
In article <nospam-9E93CB.11314315 072004@syrcnyrd rs-03-
ge0.nyroc.rr.co m>, no****@mail.inv alid 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
2692
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 function to verify the name fields, age, email and gender. My question is: if I create a function for each field like the code below, what would be the best way to organize the functions and call them? Would I need one main function and place...
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9999
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9866
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8876
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3570
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.