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
New Developer
Posts: 2
Registered: ‎11-20-2008
My Device: Not Specified

Web Page unecessarily zooming

I have been developing for the 4.7 browser and noticed that even with

 

<meta name="HandheldFriendly" content="true" /> <meta name="viewport" content="width=device-width" />

 

in the head tag, the device still zooms in on a single click. The click registers because if I hit a link, it zooms and starts to retreive the link. I cannot provide a link because the testing environment I'm working in is private.

 

Highlighted
New Developer
Posts: 2
Registered: ‎11-20-2008
My Device: Not Specified

Re: Web Page unecessarily zooming

I realized this happens when there's an onClick
New Developer
Posts: 2
Registered: ‎11-23-2008
My Device: Not Specified

Re: Web Page unecessarily zooming

[ Edited ]
I can confirm that this occurs any time an onmouseover or onmousedown event is triggered from an element other than an anchor ( <a> ) tag.
Message Edited by mkleiman on 11-23-2008 12:06 AM
New Developer
Posts: 13
Registered: ‎01-03-2009
My Device: Not Specified

Re: Web Page unecessarily zooming

I've noticed it zoom even if <a> is used so there must be another subtlety to it.  This particular link sends an asynchronous call to the server rather than loading a new page.

 

<a id="read_unread_788664" onclick="read_unread('788664','saved',1,0)" onmouseover="this.style.cursor='pointer';">Mark Read</a>

 

I'm not sure if this is a bug or desired behavior.  I certainly don't desire it.  Also, in this example onclick is used instead of onmousedown so I don't know if this has any affect.

 

If anyone knows how to make this type of html not zoom please reply.  Thanks.

Developer
Posts: 107
Registered: ‎09-25-2008
My Device: Not Specified

Re: Web Page unecessarily zooming

[ Edited ]
Try adding an href attribute to the link (i.e. either do <a href="#" onclick="foo"> or <a href="javascript&colonfoo">). In general it seems to me that it won't zoom if the cursor that appears is the "finger" pointer rather than the arrow or zoom cursor, which happens if the href attribute is present on the anchor tag.
Message Edited by staktrace on 2009-01-03 09:22 AM
New Developer
Posts: 13
Registered: ‎01-03-2009
My Device: Not Specified

Re: Web Page unecessarily zooming

I tried using href and didn't get that to work either.  I forgot to mention I was testing with the Storm and I'm not sure if its browser is different from what the original poster is using.

 

Thanks.

New Developer
Posts: 4
Registered: ‎03-25-2009
My Device: Not Specified

Re: Web Page unecessarily zooming

Has anyone figured this out yet?  I REALLY need to solve this problem ASAP for a client.
New Developer
Posts: 4
Registered: ‎03-25-2009
My Device: Not Specified

Re: Web Page unecessarily zooming

Anyone?  Is this a known issue with the browser, or is this a problem with the HTML code?
New Developer
Posts: 13
Registered: ‎01-03-2009
My Device: Not Specified

Re: Web Page unecessarily zooming

It certainly seems like a browser issue though maybe there's some magic code to make it work.