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 Developer
Posts: 60
Registered: ‎01-16-2009
My Device: Not Specified

Disable the zoom in Blackberry browser:

We would like to disable the zoom in/zoom out feature in Blackberry. Is this possible?

Thanks,
Navaneeth
Guru I
Posts: 19,020
Registered: ‎07-29-2008
My Device: Passport, Playbook, 9320BES
My Carrier: Bouygues _ SFR

Re: Disable the zoom in Blackberry browser:

what do you mean?



The search box on top-right of this page is your true friend, and the public Knowledge Base too:
New Developer
Posts: 60
Registered: ‎01-16-2009
My Device: Not Specified

Re: Disable the zoom in Blackberry browser:

When i have the web page rendered on the browser, i don't want the zoom in zoom out feature.

If i click on the 'Zoom in' feature, the page zooms.

 

Can this be avoided by setting any meta tags?

 

Thanks,

Navaneeth

Guru I
Posts: 19,020
Registered: ‎07-29-2008
My Device: Passport, Playbook, 9320BES
My Carrier: Bouygues _ SFR

Re: Disable the zoom in Blackberry browser:

on serverside, you cannot control what the user can do on his client. the only way is to use Flash technologies.

on a side note, it is against all the idea of "the web".



The search box on top-right of this page is your true friend, and the public Knowledge Base too:
BlackBerry Development Advisor
Posts: 15,752
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Disable the zoom in Blackberry browser:

You can use the HandheldFriendly meta tag or set the default zoom level.  Please see this link.

 

How To - Control the BlackBerry Browser zoom level
Article Number: DB-00670

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800878/800733/How_To_...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Guru I
Posts: 19,020
Registered: ‎07-29-2008
My Device: Passport, Playbook, 9320BES
My Carrier: Bouygues _ SFR

Re: Disable the zoom in Blackberry browser:

this will only work with the browser of the device. Not with another browser like Opera Mini or Bolt.



The search box on top-right of this page is your true friend, and the public Knowledge Base too:
Developer
Posts: 37
Registered: ‎04-02-2009
My Device: Not Specified

Re: Disable the zoom in Blackberry browser:

Hi,

  I had tried using the meta tags 

 <meta name="HandheldFriendly" content="true" />

<meta name = "viewport" content="width=device-width,height=device-height" /> 

 

  but the browser is still zooming the page when I tap in the area that doesnt have links.

  I dont want the page to be Zoomed at any cost.

 

  Have a nice day

cya

Zorro

New Developer
Posts: 1
Registered: ‎06-26-2009
My Device: Not Specified

Re: Disable the zoom in Blackberry browser:

I am seeing the same problem, has anyone figured out a solution to this problem yet?
New Developer
Posts: 13
Registered: ‎01-03-2009
My Device: Not Specified

Re: Disable the zoom in Blackberry browser:

I see Navaneeth has been persistant in looking for help on this issue.  Since I've found a potential workaround for zooming when clicking I'm responding to this thread in case some of you have email notification turned on.

 

 other thread

 

I haven't had any luck with the HandeldFriendly tag or specifiying the device width.  The only thing that seems to work is making the button a link and including href="#".

 

I don't yet know how robust this is.  Using href="#" stopped the zooming in my test, but had the side effect of jumping to the top of the page when the button was clicked. Adding return false to the onclick stopped the jumping.

 

Here's an example of the link attributes.

 

<a onclick="function($parameter); return false;" href="#">

 

 

If anyone finds places where this doesn't work or better solutions please reply.

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Disable the zoom in Blackberry browser:

Could you provide the version of the Operating system you are using where you are seeing these meta tags being ignored.

 

That should help us narrow down the issue and possible work arounds.

 

Cheers,

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter