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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:27:04+00:00 2026-06-17T15:27:04+00:00

I am using Visual studio 2012 to create a sample Windows 8 Phone app.

  • 0

I am using Visual studio 2012 to create a sample Windows 8 Phone app.

From the “Create New Project” option I have selected,

Windows > Windows Phone HTML5 App

I have also added a jquery.min.js file to the project as shown below.

enter image description here

Below is my code written in index.html…

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="stylesheet" type="text/css" href="/html/css/phone.css" />
        <script type="text/javascript" src="/html/js/jquery.min.js" ></script>
        <title>Windows Phone</title>
        <script type="text/javascript">
          $("#dynamic-box").text("hey !");
        </script>
    </head>
    <body>
        <div>
            <p>MY APPLICATION</p>
        </div>
        <div id="dynamic-box"></div>
    </body>
</html>

But no matter what I try my jquery code just wont work. Is there some other way in which jquery is to be written in Windows 8 Phone app ?

Please help me on this.

  • 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-17T15:27:05+00:00Added an answer on June 17, 2026 at 3:27 pm

    Two things going on here, one jQuery, one Windows Phone:

    1. Put your code into the ready event (it won’t work in a web page either as is)

      <script type="text/javascript">
          $(document).ready(function () {
              $("#dynamic-box").text("hey!");
          });
      </script>
      
    2. Set IsScriptEnabled BEFORE navigating to the opening page. Flip the order of the statements in Browser_Loaded in MainPage.xaml.cs.

      private void Browser_Loaded(object sender, RoutedEventArgs e)
      {
          // Add your URL here
          Browser.IsScriptEnabled = true;
          Browser.Navigate(new Uri(MainUri, UriKind.Relative));
      }
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using MonoDroid in Visual Studio 2012 to create an Android app
I'm using Visual Studio 2012 for Windows Phone 7 and this is my first
Using Visual Studio 2012, I'd like to create a C++ project folder called Include
Using Visual Studio 2012, I created a new ASP.NET MVC 4 web project, using
I'm using Bullet Physics, on Windows 7 and Visual Studio 2012. I have compiled
I'm running Windows 7 and using Visual Studio 2012 RC. I have a USB
I am using Visual Studio Express 2012 RC. If a create a blank hello
Started using Visual Studio 2012 RC since yesterday, We have one WCF solution. Whenever
I'm using the JavaScript Grid App template in Visual Studio Express 2012 to build
I have a simple web service I have created. I'm using Visual Studio 2012

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.