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.

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

Description

@trainiac

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions