amoldivalkar Posted July 21, 2009 Share Posted July 21, 2009 Hi, We are facing one problem only on IE6. We have used one javascript code for redirecting page after user is login. It works fine on other browser, but on IE6 after user is logged in it is showing blank page and after refresh it will show the appropriate page. JavaScript code: window.location.href='page_name.php' First we thought this is problem only for JavaScript but we created one test php page and added only three links by clicking on the link it will go to the site, but on first instance it is showing blank page on IE6. We have some other sites on same server and they all are working fine with the same code, only one domain is giving problem in IE6. Does it is related to some settings for that Domain in Apache or it is something else? Waiting for reply... Thanks in advance. Regards, Link to comment https://forums.phpfreaks.com/topic/166794-redirection-problem-in-ie6/ Share on other sites More sharing options...
rhodesa Posted July 21, 2009 Share Posted July 21, 2009 you should avoid using javascript to automatically redirect. why not use a PHP redirect: header('Location: page_name.php'); Link to comment https://forums.phpfreaks.com/topic/166794-redirection-problem-in-ie6/#findComment-879518 Share on other sites More sharing options...
amoldivalkar Posted July 22, 2009 Author Share Posted July 22, 2009 Hi rhodesa, Thanks for your reply... I am using javascript only when user is logged it. But if I click on the "index.php" which is not javascript still it is displaying blank page Regards, Link to comment https://forums.phpfreaks.com/topic/166794-redirection-problem-in-ie6/#findComment-880306 Share on other sites More sharing options...
haku Posted July 22, 2009 Share Posted July 22, 2009 It's because of that extra semi-colon on line 36. Link to comment https://forums.phpfreaks.com/topic/166794-redirection-problem-in-ie6/#findComment-880311 Share on other sites More sharing options...
amoldivalkar Posted July 22, 2009 Author Share Posted July 22, 2009 Hi haku, Can you please elaborate on this more? Regards, Link to comment https://forums.phpfreaks.com/topic/166794-redirection-problem-in-ie6/#findComment-880398 Share on other sites More sharing options...
amoldivalkar Posted July 27, 2009 Author Share Posted July 27, 2009 To be more specific. Even simple link "index.php" first show blank page in IE6 and after refresh it will show the content for the same page. This happens only on IE6 rest of the browser works well Link to comment https://forums.phpfreaks.com/topic/166794-redirection-problem-in-ie6/#findComment-883845 Share on other sites More sharing options...
rhodesa Posted July 27, 2009 Share Posted July 27, 2009 If you want more help, you will need to post more code, or better yet a link to the site. Link to comment https://forums.phpfreaks.com/topic/166794-redirection-problem-in-ie6/#findComment-883854 Share on other sites More sharing options...
Daniel0 Posted July 27, 2009 Share Posted July 27, 2009 you should avoid using javascript to automatically redirect. why not use a PHP redirect: header('Location: page_name.php'); Just to nitpick a bit, that would be an HTTP redirect. Link to comment https://forums.phpfreaks.com/topic/166794-redirection-problem-in-ie6/#findComment-883865 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.