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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:01:46+00:00 2026-06-10T18:01:46+00:00

has anyone had issues with the underscore.js built-in template engine using a windows phone

  • 0

has anyone had issues with the underscore.js built-in template engine using a windows phone 7?

My App stops running when it comes to this line:

var Template = {
         loadingWheel:        _.template($("#loading_wheel").html())
};

An alert() before that line will be performed, an alert() after doesn’t happen so I assume it’s something about underscore templates.
I alread tried renaming Template to something else, I guess it’s not about a reserved name or something.

#loading_wheel is an inline script-tag template that looks like this:

<script type="text/template" id="loading_wheel">
  <div class="loading">
    <img src="/images/loading.gif" />
   </div>
</script>

Hum, quite simple, isn’t it?

I’m using Backbone.js 0.9.2, Underscore.js 1.3.3 and Zepto 1.0.
The App is working on several iOs 4+5, Android 2.3, 2.6, 4.0, 4.1 and Blackberry Devices.
Just Windows Phone 7 is not showing anything.

  • 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-10T18:01:48+00:00Added an answer on June 10, 2026 at 6:01 pm

    It turned out that the problem wasn’t underscore specific but caused by the zepto framework, that obviously doesn’t support windows phone browsers.

    This is why this line of code failed:

     _.template($("#loading_wheel").html())
    

    Using jquery instead works fine (but loads some 65KB more).

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

Sidebar

Related Questions

Has anyone else had issues using Redgate's .NET Reflector on Windows 7 Ultimate 64-bit?
Has anyone had a problem running Clojure Box in Windows 7? I am trying
Has anyone had issues with a size limit on a returned JSON Object using
Has anyone had any experience in saving app preferences (within app, not in Settings
Has anyone had any experiences developing large Java applications using GNU gettext for internationalization?
Has anyone had any experience using Adobe Air to create BitTorrent application? Is there
Has anyone had any issues communicating between two Silverlight apps. When I try to
Had a question and if anyone has found similar issues. It seems my file
Has anyone had luck with removing large amount of issues from a jira database
Has anyone had any issues with backbone v0.5.1 and Jquery v1.7.2? It seems the

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.