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

James Hickmott edited comment on CB-2602 at 4/16/13 8:38 AM:
-------------------------------------------------------------

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");
                appRefresh();
        }
    });

My code after

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

This is now working for me.
                
      was (Author: jameswhickmott):
    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

Reply via email to