Thank you, but I'm sorry, but I don't understand. Can you reword the advice, please?
Main Topics
Browse All TopicsI am very new to Web development, but very VB, and am trying to display a full-sized image via a click on a thumbnail.
The code displays the thumbnail image. I hope to see the full-sized image when I click on it, but I get an 'Object expected' error on this line:
onclick="goImgWin('J:\My Pictures\Photos\2009\2009_
There are two pages in the code:
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Your example seems to include two pages in one. The 2nd page has the javascript but does not seem to be included into the first. Since the goImgWin is not defined, you get the object error.
The javascript could be included inline within the 1st page or saved in a .js file that is pulled into the first with a <script src="..."></script> statement.
Ignore my initial comment - I did not notice that there were two files in your code block.
Gary
Does the access denied happen when clicking the image or the intial page display?
Maybe it can't find J:\My Pictures\Photos\2009\2009_
Are you using Firefox or IE8? Use F12 to help debug the script.
Gary
It happens when clicking the image.
I am still trying to get the mechanism working, so I haven't yet moved the files into the site folder.
Firefox is my default browser. I am developing in Frontpage and was using the preview facility.
F12 opens IE 6.0. The code works there, and opens a new IE window to display the larger picture. Thank you.
Is it likely to be a Frontpage restriction of some sort?
Change the image to a web image instead of the J: image and see if it works. Also, try the J: image in your browser and see if it displays.
F12 is the developer tool (Firebug in Firefox (needs to be installed) or IE Developer Toolbar in IE8).
I am not sure about the Frontpage issue; consider using Visual Studio Express.
Gary
Business Accounts
Answer for Membership
by: gardavisPosted on 2009-10-26 at 17:43:12ID: 25668398
The error may be due to goImgWin not yet defined. It is defined below. Move the script up.
Gary Davis