mark110384 Posted October 17, 2008 Share Posted October 17, 2008 Any ideas why this is working in FF but no in IE. And how to resolve this issue. This tag is contained on showtopic.php <a name="replybox"></a> When a user sends a reply the script returns them to the appropriate page that they posted the reply on, and hopefully toward the bottom of the page of where the tag is placed. header("Location: showtopic.php?topic_selected=$topic_id&pagenum=$page_no&error_id=$errornum#replybox"); Link to comment https://forums.phpfreaks.com/topic/128851-solved-problem-returning-to-an-tag-on-a-page-in-ie/ Share on other sites More sharing options...
GKWelding Posted October 17, 2008 Share Posted October 17, 2008 what version of IE? Link to comment https://forums.phpfreaks.com/topic/128851-solved-problem-returning-to-an-tag-on-a-page-in-ie/#findComment-667981 Share on other sites More sharing options...
mark110384 Posted October 17, 2008 Author Share Posted October 17, 2008 It ok I've used a javascript function to work around this problem Link to comment https://forums.phpfreaks.com/topic/128851-solved-problem-returning-to-an-tag-on-a-page-in-ie/#findComment-667982 Share on other sites More sharing options...
mark110384 Posted October 17, 2008 Author Share Posted October 17, 2008 It was IE 8 beta Link to comment https://forums.phpfreaks.com/topic/128851-solved-problem-returning-to-an-tag-on-a-page-in-ie/#findComment-667983 Share on other sites More sharing options...
mark110384 Posted October 17, 2008 Author Share Posted October 17, 2008 The JS function looks in the URL for #reply like so <script type='text/javascript'> var url = new String(window.location); if (url.indexOf("#reply") > 0) { document.getElementById("replymessage").focus(); } </script> Link to comment https://forums.phpfreaks.com/topic/128851-solved-problem-returning-to-an-tag-on-a-page-in-ie/#findComment-667985 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.