Skip to content
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
trainiac opened this issue Jun 24, 2011 · 3 comments

Comments

@trainiac
Copy link

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

  1. 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.
  2. 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.
  3. 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.

@toddparker
Copy link
Contributor

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
Copy link
Author

No problem. Thanks!

@nburwell
Copy link

nburwell commented Oct 3, 2012

I would really like this feature too for the very same reason!

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

No branches or pull requests

3 participants