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 7738009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:09:05+00:00 2026-06-01T08:09:05+00:00

I set up a brand new project using the PhoneGap starter template in Visual

  • 0

I set up a brand new project using the PhoneGap starter template in Visual Studio. The template works as expected, but if I try to add jquery mobile to the page, and call a function from it, its reported that jQuery is undefined.

here is my template javascript:

<script type="text/javascript" charset="utf-8" src="cordova-1.5.0.js"></script>
   <script type="text/javascript" src="jquery.mobile.min.js"></script>
  <script type="text/javascript">

    document.addEventListener("deviceready",onDeviceReady,false);

    // once the device ready event fires, you can safely do your thing! -jm
    function onDeviceReady()
    {
        document.getElementById("welcomeMsg").innerHTML += "Cordova is ready! version=" + window.device.cordova;
        console.log("onDeviceReady. You should see this message in Visual Studio's output window.");
        jQuery("#welcomeMsg").html("blah");
    }

  </script>

My CordovaSourceDictionary.xml looks like it is ok too:

<?xml version="1.0" encoding="utf-8"?>
<!-- This file is auto-generated, do not edit! -jm -->
<CordovaSourceDictionary>
    <FilePath Value="www\cordova-1.5.0.js"/>
    <FilePath Value="www\index.html"/>
    <FilePath Value="www\jquery.mobile.min.js"/>
    <FilePath Value="www\master.css"/>
</CordovaSourceDictionary>

but upon trying to debug the WP7 app, i get these errors:

ScriptNotify :: Error:"'jQuery' is undefined"
Log:"Error in success callback: Connection1 = 'jQuery' is undefined"
  • 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-01T08:09:07+00:00Added an answer on June 1, 2026 at 8:09 am

    In the code you posted, you aren’t including the jQuery core… jQuery Mobile is built on-top-of jQuery Core so the core must be included before jQuery Mobile or jQuery Mobile will not function.

    Notice on the jQuery Mobile download page the order of includes (mobile.css, then core JS, then mobile JS):

    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
    <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
    

    Source: http://jquerymobile.com/download/

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

Sidebar

Related Questions

I'm brand new at Ruby. Trying to set up the first application/project using Aptana
I created a brand new project using the default Web Application template and I
Hey guys, I'm brand new to Visual C++, but not C++. I'm having issues
I am including a complicated project as a library in C++ using Visual Studio
I'm brand new to Rails. I have one Rails project on my machine, but
I set up an older Rails 2 project on a brand new Apache@Debian#squeeze. The
I set a passphrase when creating a new SSH key on my laptop. But,
In a brand new ASP.NET MVC2 project, I want the user to be redirected
This is weird. I added a brand new Web Application project to my solution
I am starting a new project, and I want to give mongodb a try.

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.