[
https://issues.apache.org/jira/browse/RIPPLE-16?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jimmy resolved RIPPLE-16.
-------------------------
Resolution: Not A Problem
I am sorry this was a mistake on my side. All cordova calls must be called in a
"deviceready" event listener callback otherwise it does not register.-->
document.addEventListener('deviceready',function(){
document.addEventListener("backbutton",function(e){document.write('back');},false);
},false);
-->
I was using Cordova 2.7.0. It works perfectly fine now though.
Although I am getting a "missing exec:App.overrideBackbutton" logged. It looks
like the message is for the older version of Cordova (1.0-2.0) where you
actually use App.overrideBackbutton. Maybe you can note that. It doesn't affect
anything other then clutter the console.
> Back Button Event Does not fire
> -------------------------------
>
> Key: RIPPLE-16
> URL: https://issues.apache.org/jira/browse/RIPPLE-16
> Project: Apache Ripple
> Issue Type: Bug
> Environment: Win 7, Google Chrome Plugin
> Reporter: jimmy
> Priority: Minor
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> Using Phonegap 2.6 and the code with ripple as a chrome extension->
> <!DOCTYPE html><html><head><meta charset="utf-8"/>
> <meta name="format-detection" content="telephone=no"/>
> <meta name="viewport" content="user-scalable=no,
> initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width,
> height=device-height, target-densitydpi=device-dpi"/>
> <title>Test</title>
> </head>
> <body>
> <h1>Test</h1>
>
> <script type="text/javascript" src="js/cordova.min.js"></script>
> <script
> type="text/javascript">document.addEventListener("backbutton",function(e){document.write('back');},false);</script>
> </body></html>
> -->
> I fire the event "backbutton" in the events tab and nothing happens.
> Logged is "cordova :: fired event => backbutton "
--
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