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

New feature: allow dynamic reloadPage settings for external url (in $.mobile.changePage) #3559

Closed
drazzib opened this issue Feb 9, 2012 · 2 comments

Comments

@drazzib
Copy link

drazzib commented Feb 9, 2012

Hi,

I'm looking for a way to change reloadPage dynamically (ie. without programmatic call and with only default jQM href Hijax handling). In my case, I would like to always reload every remotes pages (form submit but also simple href to remotes pages).

As a quick and dirty hack, I've modified $.mobile._registerInternalEvents method to force reloadPage in case of remotes jQM pages :

var shouldReloadPage = path.isExternal(href); $.mobile.changePage( href, { transition: transition, reverse: reverse, role: role, reloadPage: shouldReloadPage } );

Regards,

drazzib pushed a commit to drazzib/jquery-mobile that referenced this issue Feb 10, 2012
…angePage call

is made on remote (external) URL.
@toddparker
Copy link
Contributor

Thanks, mind linking this to the feature requests wiki page?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants