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 Developer
Posts: 10
Registered: ‎08-22-2008
My Device: Not Specified

Javascript key event handler

Hi all,


First, i would congratulate Blackberry team for the Javascript support in browser version v4.6.


Good job ! You are closer to desktop browser's Javascript support.


Now, i have few questions :


1) How I can debug Javascript in Blackberry simulator. Does a tool exist for that ? Actualy, I debug using alert.

2) It is possible to show the browser content cache. I would like to know witch files are in cache.

3) A have a Javascript Problem using key event handler :

In a input type text tag, I would like to transform key pressed with his uppercase. If user type "a" character, I would like to display "A" character.

How could I do that ? Using onkeypress or onkeydown ?

If a change keycode event property, nothing happen ?


Thanks for reply.

New Developer
Posts: 10
Registered: ‎08-22-2008
My Device: Not Specified

Re: Javascript key event handler

Ok, sorry for the first question, I didn't seen others threads.
BlackBerry Development Advisor
Posts: 15,857
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Javascript key event handler

It's not possible to view the BlackBerry Browser's cache.  However, you can view the raw data that is sent to the BlackBerry Simulator over HTTP (not HTTPS) connections by enabling verbose logging and reading the MDS Simulator logs.  Please see this link for more information.


How To - Enable HTTP and HTML logging in the Mobile Data Service Simulator
Article Number: DB-00156


Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.