• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web view cannot zoom

 
ahmed said
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I really need your help
I am developing an app in Android
I make a web view but it cannot zoom in or zoom out
I need a JavaScript code to do that
could you help me please?:crying:[code=java]

this is the code to open url:
app.showWeb("http://google.com/", "iframe");

I use appshed.com to develop the app.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65342
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Please be sure to take the time to compose descriptive subjects for your posts. You will attract people who will can give you better and faster answers when your posts have good, descriptive subjects. For more information, please click this link ⇒ UseAMeaningfulSubjectLine.

Using a title such as "I need help" isn't going to attract the attention of those who can best help you.

I have updated the subject for you -- please use it as a guide for future topics.
 
ahmed said
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot dear.

sorry for that I think because it is the first time for me to post in English.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So "app" is some component of the appshed framework? My first question would be: why JavaScript? Pinch-and-zoom is well-established in the mobile world; does that component not support it?
 
ahmed said
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there is an option to use JavaScript, I use that option because when I made a link to open it opens but I cant control the zoom when I sent my app to my smart phone to try.

could you please open the attachments
Screenshot.png
[Thumbnail for Screenshot.png]
help.png
[Thumbnail for help.png]
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there is an option to use JavaScript, I use that option because when I made a link to open

Just because there is a JavaScript call to open a new window does not imply that there is a JavaScript call to control zooming. What does the documentation of whatever class/object "app" is say about this?

OK, so "app" is not a Java object, it's a JavaScript object? I'm inferring that because it's shown in a window titled "Custom Javascript". But if it is ultimately an android.webkit.WebView, then that has methods to show a zoom widget, and methods to zoom in and out. You'd need to bind your JavaScript code to those methods as described in http://developer.android.com/guide/webapps/webview.html. Of course, the appshed framework may do things differently; check its documentation.
 
ahmed said
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you a lot dear.
could you please check that from this link and tell me what to do? I didn't understand very well.

http://appshed.net/item/js-api.html
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that's way too much to ask of participants in a volunteer forum. Maybe someone else here is willing to do that, but not me. I doubt it, though - I don't even find "showWeb" on that page so it's not clear how that relates to what you're doing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic