Welcome!

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

Reply
New Contributor
Posts: 6
Registered: ‎07-30-2012
My Device: 9780
My Carrier: various
Accepted Solution

jQuery Mobile + BB 9780 (V 6.0) Escape Key and Text Input

Hi all, 

 

I am new here and to BB Dev. So I am not sure if it is proper for me to post the questions here, but I believe it is worth a try, at least.  

 

I am using jQuery Mobile, 1.1.1 to develop a BB app. 

 

At this stage, I am making UIs and have got the following issues:

 

1. ESC Key:

 

When the ESC key on the keyboard is clicked, instead of going back to the previous pagew within the app, the app is quit. I have tried codes. like:

 

<script>
window.onkeyup = function(e) {
if (e.keyCode == 27) 
window.history.back();
}
</script>

 

But it doesn't work. 

 

2. 

 

All the inputable area like, text field, text area or search, get the focuse, they are blakced out, means, the users cannot really see what they are typing in. By the way, on 9790 (V 7.0), I don't counter the same issue. 

 

So I am wondering if anybody here got the same problems, and would kindly like to share their solutions. 

 

Thank you. 

 

D

Developer
Posts: 434
Registered: ‎07-23-2012
My Device: Blackberry 10
My Carrier: Orange

Re: jQuery Mobile + BB 9780 (V 6.0) Escape Key and Text Input

Html5/webworks created apps will run in instance of the browser field. Hard back button will always close these apps so u needs to consume that if you don’t want to close. Script won’t help you

  1. Os 6.0 has less supporting with jquery so u need to create your own css and html pages

 

Thanks
-------------------------------------------------------------------------------------
Press the Accept as solution Button when u got the Solution
Press Kudo to say thank to developer.
-------------------------------------------------------------------------------------.
New Contributor
Posts: 6
Registered: ‎07-30-2012
My Device: 9780
My Carrier: various

Re: jQuery Mobile + BB 9780 (V 6.0) Escape Key and Text Input

Thank you !!

 

Just one confusion here, I am not sure I fully understppd what it means by " consume that if you don't want to close".

 

Could you please give me a little more details if you could spare some time?

 

D

Highlighted
Developer
Posts: 434
Registered: ‎07-23-2012
My Device: Blackberry 10
My Carrier: Orange

Re: jQuery Mobile + BB 9780 (V 6.0) Escape Key and Text Input

wre are using following api.

 

http://docs.phonegap.com/en/2.0.0/cordova_events_events.md.html#backbutton

 

Thanks
-------------------------------------------------------------------------------------
Press the Accept as solution Button when u got the Solution
Press Kudo to say thank to developer.
-------------------------------------------------------------------------------------.
New Contributor
Posts: 6
Registered: ‎07-30-2012
My Device: 9780
My Carrier: various

Re: jQuery Mobile + BB 9780 (V 6.0) Escape Key and Text Input

Phoneapp,

 

It seems like another libary I need to catch up with.

 

Thank you, my friend.