473,836 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Thumbnail popup no longer works

Hi I'm a Javascript newbie

I'm doing a 'simple' (basically adding pages and changing text in frontpage
2000) update of a web site for a friend - what I have done 'should not' have
done anything to the Java script that this site contains and the bits I've
added work fine. However, having uploaded the changes, and looking at the
site in I.E. the thumbnail images that already existed in the site don't
load into a popup window that was designed in JavaScript, but I'm fairly
sure that they used to. The popup window opens but the image doesn't.

The thumbnails are arranged in a table.

I think the following is a sample of the relevant JavaScript.

**************
HTML
**************

<script language="JavaS cript">
<!--
function openWindow(url, name,scroll,wid th,height,top,l eft) {
popupWin = window.open(url ,name,
'scrollbars='+s croll+',width=' +width+',height ='+height+',top ='+top+',left=' +
left)
}
file://-->
</script>

*************** *
HTML

***************

<td rowspan="3"><im g name="gallery/doors/doors_r2_c01"
src="gallery/doors/doors_r2_c01.gi f" width="40" height="250"
border="0"></td>
<td colspan="2"><a
href="javascrip t:openWindow('g allery/doors/1.jpg','1',0,25 0,375,40,320);" ><i
mg name="gallery/doors/doors_r2_c02" src="gallery/doors/doors_r2_c02.gi f"

***************

The site is http://www.decorativeresins.com/ and the relevant page can be
found buy clicking on the doors item under the gallery button.

The thumbnail in the example is the one in the top left hand corner of the
table.

Any suggestions on how I can fix this.

Thanks in advance.
Jul 23 '05 #1
6 1737
Lee
Stevie D said:

Hi I'm a Javascript newbie

I'm doing a 'simple' (basically adding pages and changing text in frontpage
2000) update of a web site for a friend - what I have done 'should not' have
done anything to the Java script that this site contains and the bits I've
added work fine. However, having uploaded the changes, and looking at the
site in I.E. the thumbnail images that already existed in the site don't
load into a popup window that was designed in JavaScript, but I'm fairly
sure that they used to. The popup window opens but the image doesn't. The site is http://www.decorativeresins.com/ and the relevant page can be
found buy clicking on the doors item under the gallery button.


It looks to me like you must have mangled the directory structure.
The select menu to the left side of the home page can't find the
"Picture Gallery" page at all.
It tries to load "http://www.decorativer esins.com/picture.html",
which doesn't exist.

That's a real problem because there is no "Gallery" button if you
visit with a browser other than Internet Explorer.

Clicking the thumbnail attempts to open "gallery/doors/1.jpg".
There's no image at that location, or at "/gallery/doors/1.jpg".

Also note that there's no link to the home page from the "doors"
page, although there is a button labeled "Home". That button is
just a pulldown menu with links to "site map" and "contact us".
That pulldown menu also happens to pull down under the "QUICK FIND"
selection box, so you can't read the labels.

Jul 23 '05 #2
Stevie D wrote:
<snip>
... changing text in frontpage 2000)
Ouch!

<snip> <script language="JavaS cript">
<!--
function openWindow(url, name,scroll,wid th,height,top,l eft) {
popupWin = window.open(url ,name,
'scrollbars='+s croll+',width=' +width+',height ='+height+',
top='+top+',lef t='+ left)
}
file://-->

^^^^^
In addition to what Lee said, you might ask yourself what that syntax
error is doing there.

<snip>

Richard.
Jul 23 '05 #3
Thanks Lee.

"Lee" <RE************ **@cox.net> wrote in message
news:d8******** *@drn.newsguy.c om...
Stevie D said:

Hi I'm a Javascript newbie

I'm doing a 'simple' (basically adding pages and changing text in frontpage2000) update of a web site for a friend - what I have done 'should not' havedone anything to the Java script that this site contains and the bits I'veadded work fine. However, having uploaded the changes, and looking at the
site in I.E. the thumbnail images that already existed in the site don't
load into a popup window that was designed in JavaScript, but I'm fairly
sure that they used to. The popup window opens but the image doesn't.

The site is http://www.decorativeresins.com/ and the relevant page can be
found buy clicking on the doors item under the gallery button.


It looks to me like you must have mangled the directory structure.
The select menu to the left side of the home page can't find the
"Picture Gallery" page at all.
It tries to load "http://www.decorativer esins.com/picture.html",
which doesn't exist.

That's a real problem because there is no "Gallery" button if you
visit with a browser other than Internet Explorer.

Clicking the thumbnail attempts to open "gallery/doors/1.jpg".
There's no image at that location, or at "/gallery/doors/1.jpg".

Also note that there's no link to the home page from the "doors"
page, although there is a button labeled "Home". That button is
just a pulldown menu with links to "site map" and "contact us".
That pulldown menu also happens to pull down under the "QUICK FIND"
selection box, so you can't read the labels.

Jul 23 '05 #4
Stevie D wrote:
Hi I'm a Javascript newbie

I'm doing a 'simple' (basically adding pages and changing text in frontpage
2000) update of a web site for a friend - what I have done 'should not' have
done anything to the Java script that this site contains and the bits I've
added work fine. However, having uploaded the changes, and looking at the
site in I.E. the thumbnail images that already existed in the site don't
load into a popup window that was designed in JavaScript, but I'm fairly
sure that they used to. The popup window opens but the image doesn't.

[...]

Can I also suggest that you get someone who knows what they are doing
to rewrite your DHTML menus? They are pretty awful in IE 6 and don't
even appear in Firefox or Netscape 7, making navigation to many pages
impossible.

Investigate pure CSS menus, they are much leaner and have a greater
chance of working on a wider variety of browsers.

In the HTML you have image elements like:

<IMG alt="Decorative Resins International" border=0 height=1
src="images/blank.gif" width=1>

While the alt attribute is required, you are not required to put text
in it. Visitors with a text-to-speech browser will hear the words
"Decorative Resins International" ad nausium before they get anywhere
near the actual content (it appears 33 times in the page).

For spacer gifs, bullet images and other purely presentational images,
leave the alt text empty.

The navcond.js script needs to be junked completely, it does not work
for any browser other than Netscape Navigator 4 and IE (and maybe some
that mimic IE's proprietary features like adjacentHTML). There are
vastly simpler ways of creating cross-browser dynamic content that work
in a much greater range of browsers.
--
Rob
Jul 23 '05 #5
Lee
Richard Cornford said:

Stevie D wrote:
<snip>
... changing text in frontpage 2000)


Ouch!

<snip>
<script language="JavaS cript">
<!--
function openWindow(url, name,scroll,wid th,height,top,l eft) {
popupWin = window.open(url ,name,
'scrollbars='+s croll+',width=' +width+',height ='+height+',
top='+top+',lef t='+ left)
}
file://-->

^^^^^
In addition to what Lee said, you might ask yourself what that syntax
error is doing there.


Is it a syntax error? I took it to be a label on an otherwise blank
line. It's still worth asking what it's doing there.

Jul 23 '05 #6
Lee wrote:
Richard Cornford said:

<snip>
file://-->

^^^^^
In addition to what Lee said, you might ask yourself
what that syntax error is doing there.


Is it a syntax error? I took it to be a label on an
otherwise blank line. It's still worth asking what
it's doing there.


Yes it is a syntax error. The production for LabelledStateme nt is:-

LabelledStateme nt :
Identifier : Statement

And this 'label' is not followed by a statement. The line terminator at
the end of the comment allows automatic semicolon insertion to act but a
semicolon inserted would be an EmptyStatement, and:-

<quote cite="ECMA 262 3rd edition: section 7.9.1">
....
However, there is an additional overriding condition on the preceding
rules: a semicolon is never inserted automatically if the semicolon
would then be parsed as an empty statement or if that semicolon would
become one of the two semicolons in the header of a for statement
(section 12.6.3).
....
</quote>

So no semicolon can be inserted, and so no statement follows the 'label'
and so it cannot form a LabelledStateme nt. It must be a syntax error.

Richard.
Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1404
by: Michael Satterwhite | last post by:
I'm having trouble with the functions for resizing a picture uploaded to my server. Consider the following: $jpeg = imagecreatefromjpeg($filePath); //I know this works! $oldX = imageSX($jpeg); $oldY = imageSY($jpeg); $thumbH = 100; $thumbW = ($oldX / $oldY) * 100; //I know the dimensions are correct
4
2560
by: owen | last post by:
For some reason pop up windows are no longer working on my pc. And no, I dont have any popup killer installed. The problem is across all websites I look at on my browser. Is there any obvious reason this might happen? I haven't changed any settings, but if there's somethign I could check I'd be grateful if someone could point it out to me! Thanks! Owen
2
2938
by: Targa | last post by:
Im using the code below to pop up a window: It works fine except for that in the titlebar, my domain name is listed before the page title like below: http://mydomain.com - MyPopupwindowname - Microsoft Internet Explorer Is there any way to remove this or otherwise control what is displayed in the titlebar? I just want it to display the page title - thats it. I dont really care about the MSIE but I mainly dont want the domain to display....
11
2043
by: cooch17 | last post by:
Greetings - I have a number of websites that make use of popups spawned by a user clicking a link. Nothing fancy - here is typical code: <a href="popup.html" target="pop_win" onClick="msgWindow=window.open('','pop_win', 'resizable=no,width=600,height=300')"> click here</a>
1
2865
by: Bill H | last post by:
I run a dbms application that interfaces with the web. This module creates a frames page with two frames ('main' and 'mwinfoframe'). All communication with the dbms is routed through the 'mwinfoframe' (it's sort of hidden in that it is assigned 1% (so I can view it in IE). I'm having problems with Firefox working properly while both IE 6 and Netscape v7.x work as expected. The following is additional information. A list of reports...
1
1626
by: PWalker | last post by:
Hi, I have several webpages that have around 50+ thumbnail images in it in a table structure spanning (3 columns) x (17+ rows). Each thumbnail is wrapped in the following piece of javascript: <a href="#" onClick="javascript:window.open('Images/image_name.jpg','window','width=430,height=560,resizable=yes')"> Now since there are so many thumbnails, the page needs to be scrolled to view the thumbnails at the bottom of the list. When i...
6
9860
by: mkobus | last post by:
Im relatively new, so please be patient with me... I need to update a parent .aspx screen from a popup and close the popup. Normally I would use 'window.opener.location.reload(true);self.close();' but i need the parent window not to reload or else data that the user has already entered will be lost during the IsPostBack. I need the 'Apply' button on the popup to trigger the 'Update' button on the parent screen. The script ive seen...
9
4730
by: Jimmy Junatas | last post by:
When we open a window (using client-side jscript ie. window.open("/Site/Popup.aspx?...",...)) from Page1.aspx, the called page Popup.aspx does not have access to the Session variables present in Page1.aspx. The IIS Log shows (listed below) shows that the ASP.NET_SessionId cookie is not present in Popup.aspx. The thing is that this mechanism works for 99% of our users. There is this one user that is consistently having this problem. ...
7
4744
by: ukrbend | last post by:
I use an iframe on my home page and everything works perfectly. But now I decided to add a popups to my page. The popups come not from within the iframe but from the parent frame. Again, everything regarding the popup works perfectly, it pops up with the correct data. But the strange thing is now any link that targets the iframe simply get ignored and instead of displaying things in the iframe they get displayed in a new browser window...
0
9820
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
9671
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,...
0
10846
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10551
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10254
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
9376
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
4458
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
4020
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3116
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.