View Full Version : IE doesn't display my site properly...but I can't figure out why :S
LastLine
Jun 9, 2007, 08:46 PM
http://www.clarkephotography.co.uk/files/dd/index.php
So this is my site, clicking hte view button on a thumbnail loads the picture in it's full res to view in the window, but for some reason it doesn't work in IE. Can anyone explain why?
Answer: http://www.peterbe.com/plog/button-tag-in-IE
Why have a button anyway? You should just make the thumbnail a link.
LastLine
Jun 10, 2007, 06:14 AM
Answer: http://www.peterbe.com/plog/button-tag-in-IE
Why have a button anyway? You should just make the thumbnail a link.
I'd rather use the thumbnail by preference, the trouble was I couldn't figure out how to make the thumbnail work in the same way as my button is - here's the code that my button uses
echo '</tr><tr><td class="photo"><br>'.$trimname.'<br><img src="'.$file.'" alt="'.$file.'"/><p><center><form method="post" action="displaypic.php" class="button"><input type="hidden" name="pass" value="'.$trimname.'.jpg"><br><button>"View</button></form></center></td>';
Trouble is I couldn't find a non-button way of passing on the information in the form (the displaypic.php uses the ".$trimname.'.jpg" information in the hidden input to check which photo it's meant to display. Hopefully you'll see what I mean.
hawaiian
Jun 10, 2007, 10:23 AM
In order to get this to work in IE, you'll have to use the <input> tag rather than the <button> tag as far as I know. I don't think that you can get around this.
I'd rather use the thumbnail by preference, the trouble was I couldn't figure out how to make the thumbnail work in the same way as my button is
If you'd like to make your thumbnail the link, then why not just put anchor tags around the image tag?
echo '<A href="displaypic.php?'.$trimname.'"><IMG src="'.$file.'" alt="'.$file.'"/></A>';
I don't know if that exact code will do what it's supposed to do given your variable names and such, but I think it's a start...Also notice that the style of sending information to displaypic.php is no longer a 'post' style, it's a 'query string' now. Up to you in terms of how you want to design it, but that should make your code work in IE as well as any other browser.
I hope this helps =).
vBulletin® v3.6.10, Copyright ©2000-2009, Jelsoft Enterprises Ltd.