Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6875273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:18:05+00:00 2026-05-27T04:18:05+00:00

I am still learning the tricks to jQuery mobile and have been having a

  • 0

I am still learning the tricks to jQuery mobile and have been having a problem with the zooming in and zooming out of a picture/image on a data-role=”page.” Is there a way to make the pinch/zoom work on an image on the iPhone using jquery mobile? Cant get it to work on the iOS Simulator. Here is my code.

<!DOCTYPE html> 
<html>
<head>
<meta charset="UTF-8">
<title>jQuery Mobile Web App</title>

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

<link href="jquery.mobile-1.0a3.min.css" rel="stylesheet" type="text/css"/>
<script src="jquery-1.5.min.js" type="text/javascript"></script>
<script src="jquery.mobile-1.0a3.min.js" type="text/javascript"></script>
<!-- This reference to phonegap.js will allow for code hints as long as the current site     has been configured as a mobile application. 
To configure the site as a mobile application, go to Site -> Mobile Applications ->     Configure Application Framework... -->
<script src="/phonegap.js" type="text/javascript"></script>
</head> 
<body> 

    <div data-role="page" id="page">
    <div data-role="header">
    <h1>Page One</h1>
    </div>
    <div data-role="content" style="padding:0;">    
           <img src="coffee.gif" width="320" height="480" alt="coffee">
        </div>
    <div data-role="footer">
    <h4>Page Footer</h4>
   </div>
    </div>
</body>
</html>

Thanks so much for your help. Much appreciated.

-bob

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:18:06+00:00Added an answer on May 27, 2026 at 4:18 am

    It’s the viewport metadata property that controls those settings.

    Follow this to see how to enable pinch & zoom on JQM iOS (shouldn’t really matter that you are using PhoneGap).

    Hope this helps.

    When jQuery Mobile renders a page, it adds the following meta tag to
    the head of the document.

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

    It is the minimum-scale=1, maximum-scale=1 part of
    the tag which disables the pinch zoom. What we need to do is modify
    the $.mobile.metaViewportContent variable. We can do this using the
    following code.

    $(document).bind('mobileinit', function(){ 
        $.mobile.metaViewportContent = 'width=device-width'; 
    }); 
    

    If we want to restrict the amount of zooming, we can use the following:

    $(document).bind('mobileinit', function(){ 
        $.mobile.metaViewportContent = 'width=device-width, minimum-scale=1, maximum-scale=2'; 
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Still learning JSP Web Applications here. I have been doing this for a while
I still learning Ruby on Rails, but have been wondering what happens if I
I am still learning C and I'm having some trouble figuring out how to
I have a problem with interface lag in C#. Since I'm still learning please
I'm still learning Grails and seem to have hit a stumbling block. Here are
I'm still learning the dark arts of TDD and recently I've been trying to
Still learning this jQuery stuff.... I like this ajax page loader; it works for
Still learning jquery here and I've tried to setup a set of divs that
Still learning the MySQL ropes and I'm trying to find out how to do
Still learning haskell, and I cannot really see the difference between data Tree a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.