开发者

Using hash value in photo gallery

I try to create a navigation for my photo gallery using hash values.

When I click the "Next" link, I get value of the hash and then post it to the another backend php script using jquery $.get() api and also set the new hash value for that link. Everything works fine but the hash doesn't update itself with every click. It usually takes 2 clicks to get the updated hash value.

Can anybody here tell me on开发者_StackOverflow中文版 how I could go about fixing it.


Update hash manually, using

location.hash = '#new_hash';
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜