I am using jQuery Mobile and have few pages in one HTML page. When opening these pages, I’d like to pass parameters for them, so that their parameters are persistent in URL.
E.g.
<a href="#map?x=4&y=2"
It would open and I could access parameters X and Y in beforeshow event.
Is this possible and how? What alternative means you suggest for encoding parameters with hashbangs?
Yes, you can have links like the one you showed:
Then, on before show you can read this params with this code:
The definition of the
QueryStringToHash(got from here) is the following:Hope this helps. Cheers