开发者

Using hash value in photo gallery

开发者 https://www.devze.com 2022-12-08 01:47 出处:网络
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() ap

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

精彩评论

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