Click to See Complete Forum and Search --> : Image link not working in IE


neil9999
05-04-2007, 07:42 AM
Hi,

In internet explorer, when I view http://www.theramclub.co.uk/, the image for 'Carmina' is unclickable. It works fine in Netscape, and also if I take out the first paragraph of text for Carmina. Any idea why this could be? Disabling the popup blocker has no effect.

Thanks,

Neil

Charles
05-04-2007, 08:10 AM
There needs to not be any spaces in the window geometry specification.

neil9999
05-04-2007, 08:39 AM
Ok thanks, I have taken out the spaces in window.open, but this hasn't solved the problem.

Thanks,

Neil

Major Payne
05-05-2007, 01:08 AM
I used the following as a quick check and it worked fine in IE and FF (didn't open a larger image in another window, but the same size one):

<h2 class="eventh2">Friday 18th May 2007 - <a href="http://www.carmina.co.uk/" target="_blank">Carmina</a></h2><a onclick="window.open('http://www.theramclub.co.uk/dates/small_Carmina%202007low.JPG','','width='+screen.width+',height='+screen.height+',resizable=yes,scrol lbars=yes'); return false;" href="http://www.theramclub.co.uk/dates/small_Carmina%202007low.JPG"><img class="eventimg" style="width:250px;" src="http://www.theramclub.co.uk/dates/small_Carmina 2007low.JPG" alt="Carmina" /></a>

Ron

WebJoel
05-05-2007, 01:16 PM
<img class="eventimg" style="width:250px;" src="dates/small_Bob Fox 2007low.JPG" alt="Bob Fox" />

This (and a few other similar example) throws a "invalid URI error". "Uniform Resource Indicator", -cannot have "whitespace" in scr="" part (between "Bob" and "Fox", between "Fox" and "2007low*").

Either rename the image(s) to exclude whitespace, use an underscore or hyphen ("_" or "-"), and this may or may not affect you, but I have had problems with my server not 'serving' images with upper-case extentions e.g., "*JPG".
Probably better as precautionary to re-name to "*jpg" (lowercase) and avoid any issue with image not showing.

neil9999
05-09-2007, 04:08 PM
Thanks, Ron I have got that code working on its own but the problem seems to be when I have two paragraphs (separated by <br /> tags in the same set of <p> tags) following this code. If I just have one paragraph, without any <br />, <b> or <i> tags, it works fine as it should but for some reason when I add the extra paragraph, the picture becomes unclickable (i.e. not a link).

Joel, I will make sure future images are named with lowercase file extensions and no spaces: thanks for this advice.

Any ideas?

Neil

Major Payne
05-10-2007, 02:04 AM
I notice the following occupies two lines like this:

onclick="window.open('dates/Carmina
2007low.JPG', (rest not added here)

I put your code exactly as you have it on your page, but with it all on one line:

onclick="window.open('dates/Carmina 2007low.JPG',

It then worked just fine in IE 7.0. Noticed the code for othe images are on one line and don't have a break:

onclick="window.open('dates/megson.jpg', (rest not added here)

Maybe correct that portion and try again. It opens another large IE window with image just fine.

Ron