You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "James Hickmott (JIRA)" <ji...@apache.org> on 2013/04/16 10:39:15 UTC

[jira] [Issue Comment Deleted] (CB-2602) Hashchange prevents transition from splash screen

     [ https://issues.apache.org/jira/browse/CB-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Hickmott updated CB-2602:
-------------------------------

    Comment: was deleted

(was: 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