Hardware back button kills the application

Hello

The application is a single page application whose content is generated dynamically in javascript. She uses XMLHttpRequest to get the (xml) data to an http server.

The problem is that very often the app just quit when you press this key. Usually, it works, but seems to fail when there is an ajax request goes on the bottom.

It is very annoying, and I can't find I can't nothing what should I do to prevent this behavior on the javascript side.

I could see that in the release notes of the last versions of webworks, there is a known issue that seems related to my problem:

«If you click the previous button on a page that uses JavaScript®, the widget will close rather than return to the main page.» (1096311)"(source: http://www.scribd.com/doc/62667630/BlackBerry-WebWorks-SDK-for-Smartphones-Release-Notes-Version-2-1...)

So, I think that the webworks developers can get an idea of what's going on. My question is if there is a solution or workaround for this problem.

I'm not able to release the application in production because of this problem. Help is appreciated.

Mauro.

For anyone interested, WebWorks 2.2 solves this problem

Tags: BlackBerry Developers

Similar Questions

  • BlackBerry Webworks and 'hardware back button '.

    Hello

    I have problem to apply the logic of my application with the "hardware back button.

    I use jquery mobile to create a phonegap for Blackberry WebWorks (Smartphone version) application.

    When I have a link in my page as:

    
    

    everything works fine.

    But when I use the WebWorks API to hook the hardware back button ' ' like this

    blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_BACK,function() {
        history.back();
        return false;
    });
    

    my application is just closed. (I tested on 9800 OS6 Simulator and real device 9300 Curve 3 G with OS6)

    It is also strange, when I change the function of

    blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_BACK,function() {
        alert('Debug');
        return false;
    });
    

    The alert dialog will appear and then my app will not be closed (to be correct)

    So the problem is the "history.back()" inisde () calling the onHardwareKey handler function

    Can someone help me more?

    Thank you

    I upldated my sdk to 2.1.1 and don't have the problem more on Simulator 9930. I think I got 2.1.0.24 front

  • back or close the page to the back screen of the application

    I have a compiled build phonegap app that works offline on the device, but when I click on a link online, for example visit the facebook page, he sails, but then I can't go back to the app without waxing it. in android works because it has the native back button, but the iPhone does not have the back button... it is necessary a plugin? Can someone help me?

    How have you added the plugin? What do you use to build your application (CLI, PhoneGap Build)? If CDP, see Plugins | PhoneGap Docs for instructions on how to add plugins.

  • Whenever I try to click on the "back" button or the scroll bar, I get a popup asking me stupid questions, i.e.: Customize the toolbar / return reload etc how can I disable this gene

    When I click on the "back" button or the scroll bar with my mouse, I get a popup asking if I want to customize my toolbar back/reload/open (scrolling) or in a new window? I'm then cannot clear the pop-up window. How can I remove/fix this very annoying problem. I spend a lot of time trying to remove these popups and they keep recurring. No fix for that. I can't seem to find one in the preferences, and I'm starting to hate this OS because of this. Help!

    Please post a screenshot that shows what you hear. Please do not include personal information.

    Start a reply to this message. Drag the image file in the editing window downloading. Alternatively, you can include text in the response.

  • Cannot use the back button on the Web PDF pages

    I Windows 7, Internet Explorer (IE) 11 and Adobe Reader DC, all day. Whenever I go to a PDF Web page by clicking on a link in the Google search results and then want to return to the search results page by clicking the back button on the browser, it will not go back. Page PDF just charging once again. This does not occur when I use my browser Google Chrome, when I use IE. It happens with every page PDF that I access from the Google search on Internet Explorer. What can I do to be able to use the back button on the Web PDF page?

    Google made a diversion when you click on a search result. You can see if you right click on a such result and select Copy link location, and then paste. Is not the real address - the web site, but a link to a page of Google.com. So when you click on back after going to her, you can end up on the same redirect page, which automatically will then take you to its destination... Some browsers can handle this better than others, but it is not related to the PDF file you open.

  • Dreamweaver 20141 - when I want to save a file after a change, never stop the process and Ineedto kill the application.

    OS X 10.10.1 - Dreamweaver 20141 - when I want to save a file in my local site after a change, the process never stop and I need to kill the application. If I put my local site on an external drive, change a file, a record, it works perfectly.

    I found the solution to my problem on

    Dreamweaver 20141 Build 6947 (Mac) - except problem

  • Back button of the browser causes the Navigation to go to the previous Navigation target

    Dear Forum,

    Has anyone seen this problem:

    You have a page ADF Faces with two CommandButtons on it. Both are linked to an action event in a bean of support that navigates you to two separate pages, let's call them 'goPage1' and 'goPage2 '. The bean of the support is to ask.

    When I loaded the page, and click on the first button (which determine the action "goPage1"), the right page (Page1) appears.

    Now, I hit the back button of the browser, which displays the original page.

    Now, I press the ANOTHER command button, that should trigger the Action 'goPage2 '. But instead, the page navigates to page 1. It is as if the previous action is always cached on the browser and any that I press the second button, the initial navigation is performed.

    This happens on Firefox and IE, is not a specific problem of the browser.

    Does anyone have a work around, or a suggestion?

    Best regards

    Nigel

    Disable the back button of the browser by capturing the action on a button in Javascript and if the key code is '8' then do nothing (return false ;) :-)

  • closing button can't kill the application in miniature mode

    Hello

    I've already finished porting the SDL-based Jooleem on BB10 game. Now, there is a problem:

    I may stop game page to quit smoking but can't kill application using X button when in thumbnail mode. Even the application window disappears the game sound continues to be on and fades of application icon cannot be uninstalled.

    I searched the forum for how to remove the X button, but the result is depressed. So, how can I catch the X key event, and call the function exit original game? Thank you.

    You have the application integrated with events BPS somehow system? I guess it must in some way to make it work at all. If so, you are going to be somewhere with bps_get_event() and want to request events navigator (https://developer.blackberry.com/native/reference/bb10/com.qnx.doc.bps.lib_ref/com.qnx.doc.bps.lib_r... and listen for the NAVIGATOR_EXIT event: https://developer.blackberry.com/native/reference/bb10/com.qnx.doc.bps.lib_ref/com.qnx.doc.bps.lib_r... )

    If this does not help, you may need to describe more about the environment you are using, or investigate yourself how it hangs in the system. Maybe they have already provided this event in a certain way in the framework you use.

  • Followed by disconnection of back button of the browser allows the user in application

    Hello

    In Application Express 4.0.2.00.07 in the 300 request authentication scheme I defined the logout url to be:

    wwv_flow_custom_auth_std.logout? p_this_flow = & APP_ID. & p_next_flow_page_sess = & APP_ID.:101:

    It works very well, that is when the user application click on the logout button, he or she is redirected to the page of connection (101) if at this stage, the application user clicks the previous button on the browser, Firefox or Chrome, it is allowed in the application and may exercise as if it never of disconnection.

    On the other hand if this same exercise is repeated in Internet Explorer, the feature works as expected, it's that the user cannot return to the application without logging in once more.

    Any suggestions on why Firefox/Chrome behaves this way? suggestions in areas to look at pointers would be welcome.

    Thank you

    Daniel

    Published by: on May 22, 2012 zooid 04:03

    Hello

    It is always useful to search the forum first.

    You can start here {message identifier: = 1487149}

    Kind regards

  • "Back" button and the buttons Add on becoming pixelated.

    I noticed that my back button and my addons button in the upper right corner becomes pixelated.
    Here is a picture of what I see, this alone, it disappears if I open firefox safe mode.

    Image 1 - "back" button: http://i.imgur.com/PCc1iQI.png
    Image 2 - button "return": http://i.imgur.com/QKGefck.png
    Picture 3 - button Add-on: http://i.imgur.com/KLczXIp.png

    Image 3 the gradient does not stand still, but it shows scan lines expanded in the background of the add-on of LastPass.

    Try disabling hardware acceleration in Firefox.

  • app Webwork hardware back button

    Hello, I saw a post about it, but none of them have solved my problem. I m not able to intercept the event of the "back button" on my webworks app. My application closes just on the back key. The problem occurs only in the real device, with the Chrome its not quite the same market plugin code.

    Edit: I have a 9300 BB os6 and another with the os5 does not work on both.

    My config.xml file

    
    http://www.w3.org/ns/widgets"
            xmlns:rim="http://www.blackberry.com/ns/widgets"
            version="2.0"
        rim:header="RIM-Widget: rim/widget">
      http://www.example.com/"
              rim:copyright="Copyright 1998-2012 My Corp">My Corp
      FIDS_V3
      
      
      
    
    
    
    
    
    
    TCP_WIFI
    TCP_CELLULAR
    BIS-B
    MDS
    WAP2
    WAP
    
    
      
      
      
      
      
      
      
      
      
      
    
    

    and javascript used in index.html code

       
    

    Thank you for responding.

    The problem is that I was not including this page (index.html) in the package webworks. The web is a Web server and I put in the config.xml file of content pointing to this Web server. Is this a bad practice? The problem of adding the web project to the package is that to make changes, you need to do a full update of the application instead of change just the server.

    Apart from that, now my problem is that with

    blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_BACK,function handleBack(){history.back();return false;});
    

    When I press return on the first page the app does not close because I expected to do. Is it possible to pose as

    if (history.canGoBack()){
       history.back()
    }else{
       exit();
    }
    

    How is this controlled BB?

  • Google web toolkit plugin for firefox (1.23) disables the back button of the browser. How do fix us this?

    I have Google Web Toolkit Developer Plugin for firefox (1.23). It worked for me, but I recently discovered that in my browser back button has been disabled. By trial and error, I discovered that it's the GWT developer Plugin that is the culprit. When I disable the plugin, the previous button starts working again. When I re - activate the plugin, the back button stops working. Has anyone else encountered this problem? My firefox is version 19.0. Anyone know what would cause the plugin to start to disable the back button?

    Have you tried to use Firefox 23? This is the version you should be running.

  • I have most of the software UTD and the magic mouse 2.  I continue to have these episodes where Safari zoomed spontaneously and I can't cancel it without hitting the back button of the browser.  Did someone came across this?

    On an IMac 27 "OS is El Capitan 10.11.2 Magic Mouse 2, Safari 9.0.2

    Seen the episodes while in Safari, it suddenly zoomed in and let even me not to scroll the page.  I have to click on the back button to cancel it. It seems to happen spontaneously, but my hand is still physically on the mouse, just I don't do anything with or to the mouse.  Seems to be developed after I went to the Magic Mouse 2.  Any ideas?

    Please, open the mouse in system preferences and uncheck that smart zoom.

  • Use of the front and back buttons on the ergonomic keyboard 4000

    Title: Back and forward buttons

    What to do the back and buttons before just below the SPACEBAR of ergonomic 4000 keyboard. Nothing in the manual about what they are for, when others touch programming that they are not listed. And when I press on them, nothing happens. I run windows 7

    Title: Back and forward buttons

    What to do the back and buttons before just below the SPACEBAR of ergonomic 4000 keyboard. Nothing in the manual about what they are for, when others touch programming that they are not listed. And when I press on them, nothing happens. I run windows 7

    have your help I tried before and buttons to the rear while a Web browser, or an image viewer is open?

  • How to keep the input value after click on the back button being the ADF

    Hi expert,

    I have a case currently the adf:

    1. I put 'value' in the Label 1

    2. I click on the next button

    3. I click on the "back" button

    4. the 'value' went from 1 label.

    How to keep the 'value' of 1 tag after I click back, do you have any suggestions?

    Kind regards

    Ricky

    Hello

    Where you store the value? Try to store it in a variable pageFlowScope or a property of the pageFlowScope bean.

    value = "#{pageFlowScope.testVar} '"

    value = "#{pageFlowScope.testBean.testVar} '"

    Kind regards

    Ruben.

Maybe you are looking for

  • Cannot send messages

    Unable to send emails, the reception, its ok, but I cannot send with thunderbird, when I sent an email on Outlook with the same settings of his works!.My smtp, my ports and all its ok and the same thing with outlook, but only with Thunderbird its wha

  • jlhvguiog

    cor - El: I do appreciate the effort, but none of that worked. Gone back to 3.6.24. When that quits working, I'll find something else. Thanks again. jimweaver43

  • Update error 800b0100 code problem?

    Get the code above when you try to install the update on vista.

  • Startup Programs folder is empty...

    I have 4 programs that start at startup, but when I try to edit a startup program in the startup folder is empty... I just got my windows 7 # 64 P.C.  Completely erased and reloaded and I was wondering if this could be a problem of default n, t did a

  • Cuttin and pastin

    It can be simple, but it hurt me. I know not how to cut and paste, but I can't understand how to cut and paste columns that may be in the other text. I tried everything I can think of with the exception of Virgin sacrifice. Can someone help me please