jquery mobile ajax navigation,jQuery Mobile Ajax Navigation - Find whether or not a page was navigat...

I have a listview that contains links to view the full content. When I click back from the full content page, the list reloads from scratch...obviously not the best experience. I've found that adding data-dom-cache="true" can bring the user straight back to the list item, which is great! However, when the user hits 'back' (the data-rel='back' button), on pageload/whatever for the list page it's loading (well, reloading) the list.

Is there a way to determine whether or not the user has hit 'back'?

What I'd like to do is basically:

if (variableforuserhitback = false) {

do the code to get the listview

}

Otherwise (hitback = true) just leave it alone and run no code.

I tried going through the docs under ajax navigation, but am not really sure where to find something usable to determine whether or not the user hit back. (some kind of navigation index -1?) It seems like this is something simple that I'm just missing.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值