RC 1.1 After posting, returned to first page
Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=19020
Printed Date: 28 March 2026 at 6:52am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: RC 1.1 After posting, returned to first page
Posted By: rowdyvdveen
Subject: RC 1.1 After posting, returned to first page
Date Posted: 28 March 2006 at 6:42pm
In RC 1.1, when I post a reply with either the quick reply box or the normal reply button, I am sent back to the first page of the topic, instead of the last page (with my just made post in it).
|
Replies:
Posted By: WebWiz-Bruce
Date Posted: 29 March 2006 at 10:01am
|
Do you have a link to this so that it can be investigated?
|
Posted By: Lynford
Date Posted: 29 March 2006 at 11:19am
|
Fine for me (Access version)
|
Posted By: kingjoop
Date Posted: 29 March 2006 at 12:25pm
|
i have the same problem. When you post a reply you jump back to post one Also had this problem in beta 2 btw.
link: http://www.mopower.nl/forum_posts.asp?TID=22&FID=12&PN=3 - http://www.mopower.nl/forum_posts.asp?TID=22&FID=12&PN=3 http://www.mopower.nl/forum_posts.asp?TID=22 -
|
Posted By: rowdyvdveen
Date Posted: 29 March 2006 at 12:37pm
Yes, I do.
For example, this topic:
http://www.starbase74.nl/forum80/forum_posts.asp?TID=811&PN=1
But it happens to every topic in my forum.
It only happens in IE 6.0 though, Opera is working just fine. I have tried IE 6 on my home and my work computers to be sure, both WinXP SP 2.
I have created a login for you: (user/pass)
removed
Since you're approving this post anyway, please delete the login details when/after approving :)
|
Posted By: WebWiz-Bruce
Date Posted: 29 March 2006 at 12:58pm
I had a look at your forum and posted a number of tests posts in both IE and Firefox and each time it returned me to the correct page.
When you make a new post you should see at the end of the URL a 'PID' number and the same number after the hash sign #
This is the ID of the new post you have created the page number is then calculated from that PID number so you are taken directly to the post you have just made.
Could you please check that this number exists when creating and post and it is correct.
|
Posted By: rowdyvdveen
Date Posted: 29 March 2006 at 1:12pm
-boRg- wrote:
I had a look at your forum and posted a number of tests posts in both IE and Firefox and each time it returned me to the correct page.When you make a new post you should see at the end of the URL a 'PID' number and the same number after the hash sign #This is the ID of the new post you have created the page number is then calculated from that PID number so you are taken directly to the post you have just made.Could you please check that this number exists when creating and post and it is correct.
|
After posting a new message in a topic, I got sent back to this URL:
http://www.starbase74.nl/forum80/forum_posts.asp?TID=805&PID=32303#32303
This URL returns me to the first page of the topic.
The PID 32303 is correct. It is the PID of the last post in this case, but I'm not sent there.
I'm sent to the top of page 1.
When I hit F5/Refresh, I do end up on the last (correct) page, but the anchor doesn't seem to work and I'm at the top of page 2, instead of the bottom.
I have no idea yet why this happens in IE 6 and not in Opera.
Are there any more people with this problem?
|
Posted By: WebWiz-Bruce
Date Posted: 29 March 2006 at 1:29pm
The only reason why I can think this happens is database is not updating fast enough, so when the query is run a matching ID number can not be found because the database is not updated yet.
This is why when you hit refresh it then does work as the database has then had time to fully updated.
Although when I tested your forum in IE it ran fine. Could it therefore be some proxy, firewall, script blocking, browser setting, etc. of your PC that is coursing this? Maybe worth messing with some settings just to see, thsi way can get to the bottom of it.
|
Posted By: rowdyvdveen
Date Posted: 29 March 2006 at 1:51pm
|
Could be. I have been looking at the caching options, but haven't had any luck yet.
|
Posted By: javi712
Date Posted: 29 March 2006 at 3:17pm
Hi Borg,
I'm having the same problem also. I have tried it on three different computers (that are configured differently) and the results are the same. When I post it takes me back to the first page although the PID # is included in the url.
|
Posted By: WebWiz-Bruce
Date Posted: 30 March 2006 at 11:19am
I have found the problem.
Some versions of IE6 have a bug (what a surprise) that when an anchor is used in a redirect from an ASP file IE screws up the querystring so that anchor becomes part of the preceding querystring eg:-
forum_posts.asp?PID=123#123
Should be read into the ASP from the querystring as:-
123
However, some version of IE6 read this in as:-
123#123
This is where the problem is and it only happend when you do a redirect (302 object moved) not when you go to the URL directly which is why refresh fixes the problem.
Microsoft have now fixed this bug but, but for those who are running the buggy versions of IE 6 I have come up with some code that removes the anchor from the querystring.
Place the following code at line 191 of the file forum_posts.asp:-
'Fix for stupid IE 6 redirect bug (IE SUCKS!!!) MS have fixed this for IE7 If lngGetPostID = 0 AND Request.QueryString("PID") <> "" Then 'Remove the '#' hash anchor mark IE 6 includes in the string when doing a redirect (IE SUCKS!!) If InStr(Request.QueryString("PID"), "#") Then lngGetPostID = CLng(Mid(Request.QueryString("PID"), 1, InStr(Request.QueryString("PID"), "#")-1)) End If |
|
Posted By: javi712
Date Posted: 30 March 2006 at 1:40pm
No luck for me Borg,
I'm still being redirected to the first page and still getting the "#" after the PID
|
Posted By: WebWiz-Bruce
Date Posted: 30 March 2006 at 3:02pm
You are still meant to get the # after the PID, this is for the anchor to work.
I've fully tested the code for the next version and it does work in IE6 now, so I'm afraid that you will just have to wait for the final release if you can not successfully integrate the code above.
|
Posted By: javi712
Date Posted: 30 March 2006 at 3:18pm
Sounds good... I will be waiting
By the way... i always wondered... what does that bullet thing on each post do? i click on it and it doesn't do anything.
|
Posted By: WebWiz-Bruce
Date Posted: 30 March 2006 at 3:31pm
It's an anchor link to that post.
A number of people asked for it, as it allows you to click the bullet point and you get the URL then in your browser that takes you directly to that post.
Useful when linking to a certain post from another topic.
eg. the direct link to the first post in this topic would be:-
http://forums.webwiz.net/forum_posts.asp?TID=19020&PID=102941#102941 - http://forums.webwiz.net/forum_posts.asp?TID=19020&PID=102941#102941
|
Posted By: JasonPEC
Date Posted: 30 March 2006 at 4:34pm
|
Works fine for me. Thanks.
|
Posted By: javi712
Date Posted: 30 March 2006 at 5:18pm
Thanks for the explanation... your code now works on my site... if i remove all your comments in the code you provided then it works. I guess IE didn't like your comments
this code worked for me:
If lngGetPostID = 0 AND Request.QueryString("PID") <> "" Then
If InStr(Request.QueryString("PID"), "#") Then lngGetPostID = CLng(Mid(Request.QueryString("PID"), 1, InStr(Request.QueryString("PID"), "#")-1))
End If
|
|
|