Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > Special Interests > Web Design and Development
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread  
Old Jun 9, 2007, 08:46 PM   #1
LastLine
macrumors 6502a
 
Join Date: Aug 2005
IE doesn't display my site properly...but I can't figure out why :S

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?
LastLine is offline   Reply With Quote
Old Jun 9, 2007, 08:51 PM   #2
jng
macrumors 65816
 
jng's Avatar
 
Join Date: Apr 2007
Location: Germany
Answer: http://www.peterbe.com/plog/button-tag-in-IE

Why have a button anyway? You should just make the thumbnail a link.
__________________
Cheers 2.33 C2D 15.4" MacBook Pro 2GB RAM
jng is offline   Reply With Quote
Old Jun 10, 2007, 06:14 AM   #3
LastLine
Thread Starter
macrumors 6502a
 
Join Date: Aug 2005
Quote:
Originally Posted by jng View Post
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

Code:
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.
LastLine is offline   Reply With Quote
Old Jun 10, 2007, 10:23 AM   #4
hawaiian
macrumors member
 
Join Date: May 2007
Location: Born and raised in Honolulu. Currently living in Tokyo.
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.

Quote:
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?

Code:
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 =).
hawaiian is offline   Reply With Quote

Reply

Mac Forums > Special Interests > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:47 AM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2002-2009, MacRumors.com, LLC