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.

Activity

toddparker

toddparker commented on Jun 24, 2011

@toddparker
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

trainiac commented on Jun 24, 2011

@trainiac
Author

No problem. Thanks!

nburwell

nburwell commented on Oct 3, 2012

@nburwell

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @trainiac@toddparker@nburwell

        Issue actions

          better management of $.mobile.loadPage.defaults and how they appear on requests and subsequently in the hash display url and data-url attributes · Issue #1918 · jquery-archive/jquery-mobile