jquery/jquery-mobile — Issue #3559: New feature: allow dynamic reloadPage settings for external url (in $.mobile.changePage)
Author: drazzib
Created: 2012-02-09 16:23:34+00:00
State: open

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,