开发者

Does IE8 seem to strip the hash off any form actions containing them?

It seems like you can't l开发者_如何学JAVAink to a URI which contains a hash, at least using the Spoon IE8 executable, since it strips them after submission.

Would be great if someone can report using a legit IE8 whether it appends the hash or not.

Note: Just realized the Spoon version that I have is Release Candidate 1, so it's definitely not the real thing.

Demo


send your hash in a parameter so that way ie wont remove it
if you have :
www.domain.com/page#hashdestination
use:
www.domain.com/page?hash=#hashdestination
this trick works in all major browsers


The only workaround I can think for this is to just submit to a proxy page which does a header redirect with the hash.


To the best of my knowledge, hashes are completely ignored in URLs for requests. The way I understand it, browsers strip off the hash part, then submit the request, then attempt to scroll to an element matching that hash id.

What do you need to submit a hash for anyway?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜