471,881 Members | 1,276 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,881 software developers and data experts.

Javascript popup window for pictures

155 100+
I'm using a Javascript script that displays pictures in a popup window and it works fine except when there's a picture that contains parentheses:

Expand|Select|Wrap|Line Numbers
  1. <a href="javascript:popImage('http://www.mysite.com/gallery/pic1(small).jpg','Pictures')">
  2. <img src='http://www.mysite.com/gallery/thumbs/pic1(small).jpg' width='100' height='75' alt='Picture' >
  3. </a>
Notice the parentheses around the word "small" in the image name? I'm not a Javascript guy, so I guessing that this is what is causing the problem. What is happening is - when I click on the link I get the little image icon of a broken link in the popup window instead of the larger picture.

The popup works fine for pictures that do not contain parentheses in the image name.

Is there a work around for this?


Sep 30 '09 #1
1 2234
149 100+
nothing is wrong in your code till now..
Can you post your javascript function "popImage"?
Sep 30 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

12 posts views Thread by Mark Fox | last post: by
8 posts views Thread by Terry | last post: by
4 posts views Thread by E | last post: by

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.