469,325 Members | 1,629 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,325 developers. It's quick & easy.

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?

Thanks.

David
Sep 30 '09 #1
1 2182
ssnaik84
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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.