Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

$.mobile.changePage with safeguards #2407

Closed
@mdhari

Description

@mdhari

Hi,

I was wondering if there are plans on the roadmap to add some "safeguards" to this method since there will be users that change their mind and click on another item before a previous ajax call returns.

What's happening now is that multiple taps bound to $.mobile.changePage aren't aborting the current ajax request. They are simply being queued up and hence, every transition to a new page will include another ajax call from a previously queued item.

It would be nice if $.mobile.changePage can return an ajax object (XHR) so I can abort it on another tap.

And a callBack property would be nice too since I can technically disable all clickable objects and re-enable on ajax fail as well.

Note: This can be reproduced on jquery mobile demos as well. (Just go tap crazy on the list items :))

~Michael

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions