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
Developer
ignites
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900
My Carrier: Rogers

iframe zoom

Is it possible to control the zoom in an iframe? (PlayBook / BB10 WWs question...)

 

I know it is possible in browsers (through link below) but I am not sure if there is a proper BB solution for this.

 

http://stackoverflow.com/questions/4660659/javascript-css-set-firefox-zoom-level-of-iframe


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!
Please use plain text.
Developer
ignites
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900
My Carrier: Rogers

Re: iframe zoom

bump.


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!
Please use plain text.
Developer
nunodonato
Posts: 313
Registered: ‎03-28-2012
My Device: Curve 9360, Playbook, BB10 Dev Alpha
My Carrier: TMN

Re: iframe zoom

Hi ignites!

 

Did you try the solution provided in that link?

In BB OS 6+ the browser uses webkit, so I guess you could try the -webkit-transform: scale() thing

 

 

Nuno
theBBthing.wordpress.com - my BlackBerry development blog: news, tips and tutorials
bitoutsidethebox.com - re-imagining digital solutions


Please use plain text.
Developer
ignites
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900
My Carrier: Rogers

Re: iframe zoom

I am looking for a PlayBook//bb10 solution which should be a WebKit browser too.. doesnt seem to work for me though.


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!
Please use plain text.
Developer
nunodonato
Posts: 313
Registered: ‎03-28-2012
My Device: Curve 9360, Playbook, BB10 Dev Alpha
My Carrier: TMN

Re: iframe zoom

Do you have this in your <head> section of the .html file?

content="user-scalable=no"

 

That might prevent the webkit zoom transform. Just a guess :smileyhappy:

Nuno
theBBthing.wordpress.com - my BlackBerry development blog: news, tips and tutorials
bitoutsidethebox.com - re-imagining digital solutions


Please use plain text.
Developer
ignites
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900
My Carrier: Rogers

Re: iframe zoom

No I kept it and it worked now. Not sure whta i did lol... 


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!
Please use plain text.
Administrator
astanley
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: iframe zoom

To clarify, what do you mean by 'control the zoom'?  Do you mean:

 

1) Prevent user from changing the zoom level of the content?

 

If so, this can be done using either the user-scalable=no META content type, or by defining a click/touchstart handler and calling the e.preventDefault() method 

 

2) Declaring an initial zoom level on 1st time page load?

 

Should be able to do this using a META viewport tag.

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Please use plain text.
Developer
ignites
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900
My Carrier: Rogers

Re: iframe zoom


astanley wrote:

To clarify, what do you mean by 'control the zoom'?  Do you mean:

 

1) Prevent user from changing the zoom level of the content?

 

If so, this can be done using either the user-scalable=no META content type, or by defining a click/touchstart handler and calling the e.preventDefault() method 

 

2) Declaring an initial zoom level on 1st time page load?

 

Should be able to do this using a META viewport tag.


Basically, if I iframe a page it is the same zoom level as the app or a new window but I want to view that entire page in a smaller frame so that is why I need to zoom out.


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!
Please use plain text.