Login

Username:


Password:


Remember me



Forgot Password?





 Merchandise




Apologies for the mess in the past few minutes

Please post help requests in the Helpdesk forum. This forum is to be used for discussing the site, and events/projects.

Apologies for the mess in the past few minutes

Postby Spack » Fri Feb 01, 2008 4:33 pm

Sorry about any errors you might have seen in the past half hour or so, I've been trying to correct something that's been annoying me for ages and I just couldn't get it to work, in the end I had to craft a crude workaround.

When editing or quoting a post the browser would end up at the top of the page instead of on the new/edited post. The code itself correctly sends the anchor for the location in the page, but the browser wouldn't see it and so would sit at the top. I finally found the reason for the bug - the code sends the Location: header which drops the anchor (the #{postid} at the end of the URL). I've switched it to using Refresh: in conjunction with a small HTML page in case the redirection isn't automatic, and it's solved the issue, at least for now.
Dan ~ Age of Strife Admin
My Gallery
My 40k LibraryThing

Image
User avatar
Spack
I R Ginger
Daemon Prince
 
Posts: 5476
Joined: Sat Feb 12, 2005 12:00 am
Location: Birmingham, UK
Blog: View Blog (6)



Return to The Site



 Competitions



 Social Links