You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Bryce Curtis (Created) (JIRA)" <ji...@apache.org> on 2012/03/14 14:52:39 UTC

[jira] [Created] (CB-327) Only initialized JS when an HTML page is loaded the first time.

Only initialized JS when an HTML page is loaded the first time.
---------------------------------------------------------------

                 Key: CB-327
                 URL: https://issues.apache.org/jira/browse/CB-327
             Project: Apache Callback
          Issue Type: Bug
          Components: CordovaJS
    Affects Versions: 1.5.0
         Environment: Android 4.0.3 + jQMobile 1.0.1 + jQuery 1.7.1
            Reporter: Bryce Curtis
            Assignee: Filip Maj
             Fix For: 1.6.0


When jQMobile loads new pages into a div, DOMContentLoaded is fired.  This causes JS code to be re-initialized, wiping out the current state including the backbutton handler.  As a result, backbutton doesn't work anymore.   To resolve, JS code should only be initialized if not already done.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CB-327) Only initialized JS when an HTML page is loaded the first time.

Posted by "Bryce Curtis (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryce Curtis reassigned CB-327:
-------------------------------

    Assignee: Bryce Curtis  (was: Filip Maj)

I have a fix for this.
                
> Only initialized JS when an HTML page is loaded the first time.
> ---------------------------------------------------------------
>
>                 Key: CB-327
>                 URL: https://issues.apache.org/jira/browse/CB-327
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: CordovaJS
>    Affects Versions: 1.5.0
>         Environment: Android 4.0.3 + jQMobile 1.0.1 + jQuery 1.7.1
>            Reporter: Bryce Curtis
>            Assignee: Bryce Curtis
>             Fix For: 1.6.0
>
>
> When jQMobile loads new pages into a div, DOMContentLoaded is fired.  This causes JS code to be re-initialized, wiping out the current state including the backbutton handler.  As a result, backbutton doesn't work anymore.   To resolve, JS code should only be initialized if not already done.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-327) Only initialized JS when an HTML page is loaded the first time.

Posted by "Bryce Curtis (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryce Curtis resolved CB-327.
-----------------------------

    Resolution: Fixed
    
> Only initialized JS when an HTML page is loaded the first time.
> ---------------------------------------------------------------
>
>                 Key: CB-327
>                 URL: https://issues.apache.org/jira/browse/CB-327
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: CordovaJS
>    Affects Versions: 1.5.0
>         Environment: Android 4.0.3 + jQMobile 1.0.1 + jQuery 1.7.1
>            Reporter: Bryce Curtis
>            Assignee: Bryce Curtis
>             Fix For: 1.6.0
>
>
> When jQMobile loads new pages into a div, DOMContentLoaded is fired.  This causes JS code to be re-initialized, wiping out the current state including the backbutton handler.  As a result, backbutton doesn't work anymore.   To resolve, JS code should only be initialized if not already done.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira