0

I am working on an ipad application.I am using asp.net framework with HTML5 and mobileJquery. Is there anyway to do this? Thanks

sonu
  • 61
  • 1
  • 2
  • 7

2 Answers2

0

If you are looking to add pinch zoom, you need to have a viewport tag like this:

<meta name="viewport" content="width=device-width, initial-scale=1">

The old recommended way was:

<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1">

More information on this here: http://jquerymobile.com/blog/2011/06/20/jquery-mobile-beta-1-released/

Also, another similar post here: javascript event for a mobile pinch/zoom action

Community
  • 1
  • 1
shanabus
  • 12,989
  • 6
  • 52
  • 78
  • thanks shanabus.I have tried using the meta tag but then also i was not able to do pinching. – sonu Mar 12 '12 at 05:41
0

Pinching can be affected by the user-scalable and maximum-scale values of your view port meta tag. Try the below line and let me know it works for you or not.
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=2.6,user-scalable=yes">

iDroid
  • 1,140
  • 1
  • 13
  • 30