Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

No changePage at Windows Phone OS 7.5 (IEMobile) #5176

Closed
Fr33z3m4n opened this Issue Oct 16, 2012 · 2 comments

Comments

Projects
None yet
3 participants

Hello,

i have an Problem to change any page with event "changePage".

HTML Code:
<div id="wahlenContent"> <ul id="wahlenContentUL" data-inset="true" data-role="listview" class="ui-listview ui-listview-inset ui-corner-all ui-shadow"> <li id="24" data-corners="false" data-shadow="false" data-iconshadow="true" data-wrapperels="div" data-icon="arrow-r" data-iconpos="right" data-theme="c" class="ui-btn ui-btn-icon-right ui-li-has-arrow ui-li ui-corner-top ui-btn-up-c"><div class="ui-btn-inner ui-li ui-corner-top"><div class="ui-btn-text" style="font-size: 14px;"><a href="#showGebiete&amp;wahl=24" class="ui-link-inherit" style="font-size: 14px;"><span class="ui-li-aside">27.09.2009</span>Wahl zum 17. Deutschen Bundestag</a></div><span class="ui-icon ui-icon-arrow-r ui-icon-shadow">&nbsp;</span></div></li></div>

JavaScript Code:

bindPageBeforeChange: function() {
        wrs.options.document.bind( "pagebeforechange", function( e, data ) {
            if ( typeof data.toPage === "string" ) {
                wrs.options.url = $.mobile.path.parseUrl( data.toPage );
                if ( wrs.options.url.hash.search(/^#showGebiete(.*)/) !== -1 ) {
                    var urlParams = wrs.options.url.hash.replace(/#showGebiete/, "?site=gebiete");
                    var url = wrs.options.url.hrefNoSearch + urlParams;
                    $.mobile.changePage(url, wrs.options.changePage);
                    return;
                }
            }
        });
    },

When i Click on listview Entry, IEMobile is loading and sending "Error loading Page". No Page change, nothing. No Crossdomain.

On Apache Access Logs, can i see that IEMobile Request the new Page, but didnt change it to.

At
Mobile: Android (all Versions), iPhone
PC: IE/FF/Chrome/Safari
its work perfectly

jQuery Mobile 1.2.0
jQuery: 1.7.2 / 1.8.0 / 1.8.2

Any Solutions ?

gziolo commented Nov 9, 2012

Hi, can you check if fix from #5235 helps to solve this issue? I guess this is similar problem.

Owner

arschmitz commented Jul 1, 2013

Im going to close this because the proper way to redirect durring pageChange is by changing the toPage paramater on the data object passed to pagebeforechange. also no response to request for more info after 8 months

@arschmitz arschmitz closed this Jul 1, 2013

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