473,395 Members | 2,467 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,395 software developers and data experts.

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="JavaScript">
<!--
function openWindow(url,name,scroll,width,height,top,left) {
popupWin = window.open(url,name,
'scrollbars='+scroll+',width='+width+',height='+he ight+',top='+top+',left='+
left)
}
file://-->
</script>

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

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

<td rowspan="3"><img name="gallery/doors/doors_r2_c01"
src="gallery/doors/doors_r2_c01.gif" width="40" height="250"
border="0"></td>
<td colspan="2"><a
href="javascript:openWindow('gallery/doors/1.jpg','1',0,250,375,40,320);"><i
mg name="gallery/doors/doors_r2_c02" src="gallery/doors/doors_r2_c02.gif"

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

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 1717
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.decorativeresins.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="JavaScript">
<!--
function openWindow(url,name,scroll,width,height,top,left) {
popupWin = window.open(url,name,
'scrollbars='+scroll+',width='+width+',height='+he ight+',
top='+top+',left='+ 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.com...
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.decorativeresins.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="JavaScript">
<!--
function openWindow(url,name,scroll,width,height,top,left) {
popupWin = window.open(url,name,
'scrollbars='+scroll+',width='+width+',height='+he ight+',
top='+top+',left='+ 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 LabelledStatement is:-

LabelledStatement :
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 LabelledStatement. 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
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 =...
4
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...
2
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 -...
11
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"...
1
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...
1
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: ...
6
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...
9
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...
7
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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,...
0
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...
0
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...
0
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,...

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.