dean7 Posted December 7, 2009 Share Posted December 7, 2009 Hi all, I have a website which i would like anyone to view on any internet browser but my website is only seeming to be able to be viewed on safari no other internet browsers. Anyone know why its only showing on Safari and not any others? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/184287-only-showing-pages-on-certain-browsers/ Share on other sites More sharing options...
PFMaBiSmAd Posted December 7, 2009 Share Posted December 7, 2009 About the only reasonable explanation would be that the output is invalid HTML (for example, there is an opening a HTML comment <!-- tag but no closing one) or you have a form that is invalid HTML that does not submit any data in most browsers. Have you validated your resulting page(s) at the w3.org validators? Edit: Have you done a "view source" of the page(s) in the browsers where they don't seem to work so that you know what if anything is being output? Quote Link to comment https://forums.phpfreaks.com/topic/184287-only-showing-pages-on-certain-browsers/#findComment-972880 Share on other sites More sharing options...
dean7 Posted December 7, 2009 Author Share Posted December 7, 2009 When i right click view source, it shows the css and the frames that is needed for that page but still isnt showing anything on that page. Heres the code of index2.php when you right click view source. <style> .body { background-color: #666666; font-size: 14px; color: #000000; } .table { border: 1; background-color: #333333; font-size: 12px; font-style: normal; color: #000000; } td.header { background-image: URL(header.png); font-size: 12px; color: #000000; } .footer { border: 1px; border-color: #000000; font-size: 12px; font-style: bold; color: #000000; } .stats { font-size: 11px; color: #000000; } .textbox { border: 1px; border-color: #000000; font-size: 12px; background-color: #373737; color: #000000; } .button { font-size: 12px; background-image: URL(button.png); border: 1px; border-color: #000000; font-weight: bold; height: 20px; width: 92px; } a:link{ text-decoration: none; font-weight: none; color: #000000; } a:visited { text-decoration: none; color: #000000; font-weight: none; } a:active { text-decoration: none; color: #000000; font-weight: none; } a:hover { color: #FFFFFF; font-weight: none; text-decoration: blink; } </style> <html> <head> <link rel='shortcut icon' href='favicon.ico' /> <title>Chill-Out || Logged In</title> </head> <body> <frameset rows='100,*' cols='*' frameborder='no' border='0' framespacing='0'><frameset rows='*,20' cols='*' framespacing='0' frameborder='no' border='0'> <frameset cols='*,182' frameborder='no' border='0' framespacing='0'> <frame src='banner.php' name='topFrame' scrolling='No' noresize='noresize' id='topFrame' title='topFrame' /> <frame src='stats.php' name='rightFrame' scrolling='No' noresize='noresize' id='rightFrame' title='rightFrame' /> </frameset> <frame src='playerstats.php' name='bottomFrame' scrolling='No' noresize='noresize' id='bottomFrame' title='bottomFrame' heigh='15%' /> </frameset><frameset rows='*' cols='130,*' framespacing='0' frameborder='no' border='0'> <frame src='menu.php' name='leftFrame' scrolling='No' noresize='noresize' id='leftFrame' title='leftFrame' /> <frame src='news.php' name='mainFrame' id='mainFrame' title='mainFrame' /> </frameset></frameset><noframes></noframes> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/184287-only-showing-pages-on-certain-browsers/#findComment-972881 Share on other sites More sharing options...
mrMarcus Posted December 7, 2009 Share Posted December 7, 2009 why is your CSS above everything else like that? put it in the <head>css here</head> Quote Link to comment https://forums.phpfreaks.com/topic/184287-only-showing-pages-on-certain-browsers/#findComment-972888 Share on other sites More sharing options...
dean7 Posted December 7, 2009 Author Share Posted December 7, 2009 why is your CSS above everything else like that? put it in the <head>css here</head> Because ive included the css though a different document which is in the php code which will be at the top of the page. Quote Link to comment https://forums.phpfreaks.com/topic/184287-only-showing-pages-on-certain-browsers/#findComment-972890 Share on other sites More sharing options...
mrMarcus Posted December 7, 2009 Share Posted December 7, 2009 well then you should un-include it from that chunk of code and re-include it in the <head></head> where it belongs. and i love how people hate taking advantage of built-in error handling: <noframes></noframes> will do nothing if there is nothing within those tags. place something within those tags for starters when in development. you never know. maybe frames aren't working? who knows at this point. it's the same as <noscript></noscript> and javascript. too many times (especially with Web Developer Extension for Firefox), people will have Javascript turned off but not create a fail-safe system. Quote Link to comment https://forums.phpfreaks.com/topic/184287-only-showing-pages-on-certain-browsers/#findComment-972903 Share on other sites More sharing options...
dean7 Posted December 7, 2009 Author Share Posted December 7, 2009 well then you should un-include it from that chunk of code and re-include it in the <head></head> where it belongs. and i love how people hate taking advantage of built-in error handling: <noframes></noframes> will do nothing if there is nothing within those tags. place something within those tags for starters when in development. you never know. maybe frames aren't working? who knows at this point. it's the same as <noscript></noscript> and javascript. too many times (especially with Web Developer Extension for Firefox), people will have Javascript turned off but not create a fail-safe system. But the frames are working in Safari so surly they are working? Also ive moved including the style to the head tags but done no different... Quote Link to comment https://forums.phpfreaks.com/topic/184287-only-showing-pages-on-certain-browsers/#findComment-972905 Share on other sites More sharing options...
mrMarcus Posted December 7, 2009 Share Posted December 7, 2009 i didn't expect it to be the CSS there. just doesn't need to be way up top like that. try clearing the cache (and cookies if applicable) in the other web browsers. to be honest, i haven't used frames since i first started designing/developing websites waaaay, way back when, so i have no idea on the cross-browser compatibility issues that might be happening. try eliminating the frames for now, and just include the files to see if it is a <frame> issue: <body> <?php include 'banner.php'; include 'stats.php'; include 'playerstats.php'; include 'menu.php'; include 'news.php'; ?> </body> Quote Link to comment https://forums.phpfreaks.com/topic/184287-only-showing-pages-on-certain-browsers/#findComment-972917 Share on other sites More sharing options...
dean7 Posted December 7, 2009 Author Share Posted December 7, 2009 if i just include the files it shows them all. So could that be the frames? Quote Link to comment https://forums.phpfreaks.com/topic/184287-only-showing-pages-on-certain-browsers/#findComment-972919 Share on other sites More sharing options...
mrMarcus Posted December 7, 2009 Share Posted December 7, 2009 so yes, i would believe it's the frames. as i already stated though, my knowledge of frames is limited to nil as i have absolutely no need for them. and anything i once knew, has been purged since i haven't used them for 10 years. do you have Web Developer extension for Firefox? grab that and there is an option in there to outline Frames. perhaps that could be of use to you. otherwise, logic would tell me that you might want to reset the size (widths, heights, rows, cols, etc.) of each frame, add frameborder="yes" (or whatever the syntax might be), border=1, etc., so you can see what you're dealing with. Quote Link to comment https://forums.phpfreaks.com/topic/184287-only-showing-pages-on-certain-browsers/#findComment-972928 Share on other sites More sharing options...
dean7 Posted December 7, 2009 Author Share Posted December 7, 2009 so yes, i would believe it's the frames. as i already stated though, my knowledge of frames is limited to nil as i have absolutely no need for them. and anything i once knew, has been purged since i haven't used them for 10 years. do you have Web Developer extension for Firefox? grab that and there is an option in there to outline Frames. perhaps that could be of use to you. otherwise, logic would tell me that you might want to reset the size (widths, heights, rows, cols, etc.) of each frame, add frameborder="yes" (or whatever the syntax might be), border=1, etc., so you can see what you're dealing with. Ok thanks for your help Quote Link to comment https://forums.phpfreaks.com/topic/184287-only-showing-pages-on-certain-browsers/#findComment-972930 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.