cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Hickmott (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-2602) Hashchange prevents transition from splash screen
Date Tue, 16 Apr 2013 08:31:16 GMT

    [ https://issues.apache.org/jira/browse/CB-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13632662#comment-13632662
] 

James Hickmott commented on CB-2602:
------------------------------------

Hi Andrew,
I am having the same issue however i am using the following workaround with jQuery Mobile

My code before

    $('#LoginPage').live('pagebeforeshow', function(event) {
    	if(window.localStorage.getItem("UserID"))
    	{
    		$.mobile.changePage("#MainPage");
    		//loadFormat(window.localStorage.getItem("CurrentFormat"));
    		appRefresh();
    	}
    });

My code after

    $('#LoginPage').live('pagebeforeshow', function(event) {
    	if(window.localStorage.getItem("UserID"))
    	{
    		$.mobile.changePage("#MainPage", {changeHash: false});
    		//loadFormat(window.localStorage.getItem("CurrentFormat"));
    		appRefresh();
    	}
    });

This is now working for me.
                
> Hashchange prevents transition from splash screen
> -------------------------------------------------
>
>                 Key: CB-2602
>                 URL: https://issues.apache.org/jira/browse/CB-2602
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>            Reporter: haric
>            Assignee: Andrew Grieve
>
> location.hashchange on page load prevents transition from splash screen.  However, works
from device ready or after setting an interval.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message