Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

New Contributor
Posts: 7
Registered: ‎03-06-2012
My Device: Blackberry Playbook
My Carrier: Vodafone

App hangs after tapping on JavaScript prompt

My applicaiton freezes after I tap the 'OK' button on the the JavaScript prompt. It works fine on the Ripple Emulator but hangs when run a on Dev Alpha B device. What can I do to prevent the app from hanging ?

Thanks in advance.




   if(guess.toUpperCase() == temp)  /* if guess equals to temp */
     if(window.confirm("Absolutely Right ! Yes the country was " + temp + "\nDo you want to play again?"))
    /* window.location="./index.html";*/
     window.location.reload();      /* reloads the page for a new game */
     if(tries == 5) /* game over */
    if(window.confirm("Sorry ! Your chances over. The country was  " + temp + "\nDo you want to play again?"))
    /* window.location="./index.html"; */

      window.location.reload(); /* reloads the page for a new game */
      document.form1.hint.value = "Enter your guess below and click on Guess!";