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.
better management of $.mobile.loadPage.defaults and how they appear on requests and subsequently in the hash display url and data-url attributes #1918
Closed
Description
For my app I want to know server side whether a page was requested with ajax or non-ajax so I make a default param $.mobile.loadPage.defaults.data={ajaxpage : true}; This is causing a few issues
- You have to manage it's appearance on the query string. In some cases this param may show up on the query string twice which can cause some server side logic to choke and looks sloppy.
- You might not want this information to show in the hash portion of the display url as it has nothing to do with the content of the page.
- You might not want this information to be stuffed in the page data-url attribute as it has nothing to do with the content of the page, only the way it was requested.
In sum, It would be nice if jquery mobile was able to better manage $.mobile.loadPage.defaults and how they appear on requests and subsequently in the hash display url and data-url attributes.
Activity
toddparker commentedon Jun 24, 2011
Interesting idea. Would you ming adding this to feature request wiki page, linking to this issue and closing it? We'll re-open when it's on deck.
trainiac commentedon Jun 24, 2011
No problem. Thanks!
nburwell commentedon Oct 3, 2012
I would really like this feature too for the very same reason!