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

  • SEARCH
  • Home
  • 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 8357259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:25:23+00:00 2026-06-09T10:25:23+00:00

I created a HTML5 website with jQuery and jQueryMobile. If I run it in

  • 0

I created a HTML5 website with jQuery and jQueryMobile.

If I run it in the browser, everything works fine.

When I deploy it to the iPhone Simulator via Phonegap, it won’t find the jQuery object ($) which I included like this:

<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>

console.log($); // undefined

If I modify the src attribute, so that my app uses a local copy of jQuery, the jQuery objects exists:

<script src="lib/jquery.js"></script>

console.log($); // works

BUT then I noticed that none of my Ajax calls within my app work.

So, I assume that my iPhone app refuses HTTP connections to remote hosts.

How can I fix this?


Update: I checked the URL where my app is deployed within the iPhone app and it looks like this:

file:///Users/mobile/Library/Application Support/iPhone Simulator/5.1/Applications/9767E436-B93422-5423-5HLD-1680170C8AC5/MyApp.app/www/index.html

  • 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-06-09T10:25:25+00:00Added an answer on June 9, 2026 at 10:25 am

    You need to specify which hosts you allow to connect to in the Cordova.plist

    This feature is called Whitelist and avoids your app to connect to servers you don’t want to

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a website loading progress bar using Jquery UI Progress bar. This
I have a jQuery Mobile website I created for a friend/client of mine. It
I've created a simple jQuery slider for my website, and I was wondering if
I created my website with jQuery mobile and I would like to build the
I created a Plug-in for friends and it works perfectly on my website. But,
I finally have jQuery AJAX down pretty well and have my website all created,
I am very new to WordPress. I have converted a HTML website I created
I have created an html5 application in which I open an pdf, after opening
I have recently created a HTML5 canvas animation (also using Processing.js). The problem is
I have just created an HTML5 page with a background image in the top

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.