Search code examples
jqueryjquery-mobilebrowser-historyfragment-identifierhashbang

Adding your own hash in the URL breaks jQuery Mobile?


I would like to use my own hash parameters in the URL, but when I do the jQuery Mobile site does not work any more. Just a blank white screen with an endless spinner. Is it true the hash is off limits to me when using jQuery Mobile?


Solution

  • If you need to pass parameters to internal/embedded page, jQuery Mobile does not support this feature. But there are two plugins that let you do so:

    I advise you to read the official documentation on jQuery Mobile's Navigation Model: http://jquerymobile.com/demos/1.1.0/docs/pages/page-navmodel.html

    The two plugins are mentioned in the "Known limitations" section.