I was struggling with the windows phone emulator for a while, figuring out why jquery mobile doesn't fire pagebeforechange event on the links in my phonegap application.
I found the source of the problem to be jquery-mobile.js:3317, where it checks:
- isCrossDomainPageLoad = ( $.mobile.allowCrossDomainPages && documentUrl.protocol === "file:" && href.search( /^https?:/ ) != -1 ),
although documentUrl.protocol returns "x-wmapp1:" instead of "file:" on windows phone.
I resolved this issue by adding additional check for "x-wmapp1:".
Hope this helps,
Donatas