That thread has a marked answer that works for me with ASP.NET MVC. The main thing to keep in mind is the placement of the replacable content because of jQueryMobile's timing of the loading and execution of scripts.
So in my _Layout.cshtml (Razor) page, I have:
<script src="http://code.jquery.com/jquery-1.4.3.min.js"></script>
@RenderSection("HeadContent", required: false)
<script src="http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.js"></script>
And in my Logon.cshtml page, I have this:
- @section HeadContent
- {
- <
script type="text/javascript">
- $(document).bind(
"mobileinit", function(){
- $.extend( $.mobile, { ajaxFormsEnabled:
false });
- });
- </
script>}
- }
It keeps the redirects in place, allows for remembering of passwords, and the hash navigation is much better than if it were a rel=external link.