will35010 Posted January 17, 2011 Share Posted January 17, 2011 This link button works fine in firefox, but not IE. Any clues on how to make it work with both? <p><a href='../display/discharge.php?id=<?php echo $id; ?>' style='text-decoration:none'><button type="button">Discharge Patient</button></a></p> Quote Link to comment https://forums.phpfreaks.com/topic/224758-link-button-working-in-firefox-but-not-ie/ Share on other sites More sharing options...
Maq Posted January 17, 2011 Share Posted January 17, 2011 Can you show us the link locations for both browsers? Quote Link to comment https://forums.phpfreaks.com/topic/224758-link-button-working-in-firefox-but-not-ie/#findComment-1160977 Share on other sites More sharing options...
will35010 Posted January 17, 2011 Author Share Posted January 17, 2011 Can you show us the link locations for both browsers? Under IE source <p><a href='../display/discharge.php?id=1' style='text-decoration:none'><button type="button">Discharge Patient</button></a></p> Under Firefox & working in firefox only <p><a href='../display/discharge.php?id=1' style='text-decoration:none'><button type="button">Discharge Patient</button></a></p> Quote Link to comment https://forums.phpfreaks.com/topic/224758-link-button-working-in-firefox-but-not-ie/#findComment-1160986 Share on other sites More sharing options...
will35010 Posted January 17, 2011 Author Share Posted January 17, 2011 If I change it to this it works in both firefox and IE, but I really like the look of the button. <p><a href='../display/discharge.php?id=<?php echo $id; ?>' style='text-decoration:none'>Discharge Patient</a></p> Quote Link to comment https://forums.phpfreaks.com/topic/224758-link-button-working-in-firefox-but-not-ie/#findComment-1160998 Share on other sites More sharing options...
Maq Posted January 17, 2011 Share Posted January 17, 2011 If I change it to this it works in both firefox and IE, but I really like the look of the button. ' style='text-decoration:none'>Discharge Patient Seems like a common problem. People have circumvented this by using some Javascript, check out this post: http://themeshaper.com/forums/topic/button-doesnt-work-in-ie Quote Link to comment https://forums.phpfreaks.com/topic/224758-link-button-working-in-firefox-but-not-ie/#findComment-1161003 Share on other sites More sharing options...
will35010 Posted January 17, 2011 Author Share Posted January 17, 2011 Thanks for the link. It has good info on how to fix this issue. Thanks again! If I change it to this it works in both firefox and IE, but I really like the look of the button. <p><a href='../display/discharge.php?id=<?php echo $id; ?>' style='text-decoration:none'>Discharge Patient</a></p> Seems like a common problem. People have circumvented this by using some Javascript, check out this post: http://themeshaper.com/forums/topic/button-doesnt-work-in-ie Quote Link to comment https://forums.phpfreaks.com/topic/224758-link-button-working-in-firefox-but-not-ie/#findComment-1161015 Share on other sites More sharing options...
Maq Posted January 17, 2011 Share Posted January 17, 2011 Sure. The only issue with using JS is that some people may have disabled it but that would be a very very small percentage. Quote Link to comment https://forums.phpfreaks.com/topic/224758-link-button-working-in-firefox-but-not-ie/#findComment-1161016 Share on other sites More sharing options...
haku Posted January 18, 2011 Share Posted January 18, 2011 80 million users have downloaded this firefox addon: https://addons.mozilla.org/en-US/firefox/addon/noscript/ It's one of the more popular add ons, particularly by people in the know. It depends on the site, but I personally try to never disregard users with javascript turned off. Quote Link to comment https://forums.phpfreaks.com/topic/224758-link-button-working-in-firefox-but-not-ie/#findComment-1161103 Share on other sites More sharing options...
haku Posted January 18, 2011 Share Posted January 18, 2011 80 million users have downloaded this firefox addon: https://addons.mozilla.org/en-US/firefox/addon/noscript/ It's one of the more popular add ons, particularly by people in the know. It depends on the site, but I personally try to never disregard users with javascript turned off. Particularly for SEO since search engines don't use javascript. Quote Link to comment https://forums.phpfreaks.com/topic/224758-link-button-working-in-firefox-but-not-ie/#findComment-1161104 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.