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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
Posts: 26
Registered: ‎05-10-2011
My Device: PB
My Carrier: TELUS

Problem with HTML search form on PB and Z10

We have a page on intranet that doesn't work with blackberry 10 devices

 

the java script is 

 

function checkEnterKey(e) {

        var key = window.event ? e.keyCode : e.which;      

        

        if (key == 13) {

            startSearch();

            return false;

        }

 

        return true;

    }

 

 

does anyone know what is the key code for blackberrys "submit" on the keyboard?

 

if we have a field that you type text and then click on a submit button that works.

 

 

Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: Problem with HTML search form on PB and Z10

Try (key == 13 || key == 10)

But could it be that your button is intercepting the event and not bubbling it up to "window"?

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Contributor
Posts: 26
Registered: ‎05-10-2011
My Device: PB
My Carrier: TELUS

Re: Problem with HTML search form on PB and Z10

tried both 10 and 13

 

if we do js alert and type "a" a pop uyp comes up with 97

 

but if you hit enter - page reloads

 

Highlighted
Contributor
Posts: 26
Registered: ‎05-10-2011
My Device: PB
My Carrier: TELUS

Re: Problem with HTML search form on PB and Z10

also , no java script alert for backspace either - it jsut deletes the character...
Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: Problem with HTML search form on PB and Z10

It's strange because I just did a test and backspace was detected as keycode 8.

The reloading of the page may suggest that you're "posting" the form instead of processing it via Javascript. I had a similar issue in one app on the PlayBook, I'll try to see if I can find out more about the issue we had.

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Contributor
Posts: 26
Registered: ‎05-10-2011
My Device: PB
My Carrier: TELUS

Re: Problem with HTML search form on PB and Z10

if you could find out what it was it would be very helpfull as we could get rid of the "GO" button. Smiley Happy

 

 

Contributor
Posts: 26
Registered: ‎05-10-2011
My Device: PB
My Carrier: TELUS

Re: Problem with HTML search form on PB and Z10

any word on this ? 

 

we still have this issue and it's very frusturating Smiley Sad