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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T12:58:16+00:00 2026-06-16T12:58:16+00:00

I have a WebApp built in PhoneGap. I read this article So I tried

  • 0

I have a WebApp built in PhoneGap.
I read this article
So I tried to port my app to Windows Phone 8 and followed a Getting Started guide here.

I am using Marionette.js and Cordova 2.3.0rc2. I have an ajax call here.

 $.ajax({
    url : urlTemp + templateId + ".html",  //This refers to a file in my local file system
    data : {},
    success : function(data) {
      App.templates[templateId] = data;
      callback.call(this, data);
    },
    error : function(err) {
      alert('ERROR LOG: Error loading Template for: ' + urlTemp + templateId + ".html");
    },
    dataType : 'text'
  });

Somehow this always goes in error. This works well in Android and IOS.

  • 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-16T12:58:17+00:00Added an answer on June 16, 2026 at 12:58 pm

    If it’s just a local file, you may be able to use the FileReader API instead of an AJAX request to read the file data.

    http://docs.phonegap.com/en/2.2.0/cordova_file_file.md.html#FileReader

    Edit: Just noticed you stated you are using 2.3.0. Removing my comments about it not yet supported in 2.2.

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

Sidebar

Related Questions

I currently have a project built with maven-archetype-webapp artifact. The default packaging for this
I have a web app built with Dojo 1.7.2, using RequireJS to load individual
I have a web app built on Java Servlet technology. I am thinking of
I have a simple web app built in asp.net webforms c# where and how
I have a Python 2.6 web app built on Pylons 0.9.7. The code in
I am using latest Pyramid to build a web app. Somehow we have started
I have a Sinatra webapp I've built using enable :sessions where I access my
I have Windows Server 2008 (64-bit), VS 2008 with its built-in webserver and an
We have an existing web app built with jQuery Mobile. Our goal is to
I have inherited a webapp built using NetBean's internal ant. All jsps reside in:

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.