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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:33:55+00:00 2026-05-20T06:33:55+00:00

I have following project structure -root -app.html -scripts/ -jquery/ locales.js -_locales/ -en/ -messages.json in

  • 0

I have following project structure

  -root
     -app.html
     -scripts/
         -jquery/
         locales.js
     -_locales/
         -en/
            -messages.json

in app.html I include the locales.js file in which I want to load the messages.json file like this

jQUery.get("../_locales/en/messages.json", function(data){
    alert(data);
});

But this does not work. Any ideas?

  • 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-05-20T06:33:56+00:00Added an answer on May 20, 2026 at 6:33 am

    Since you are using .get, what you need to provide is the URL to access _locals/en/messages.json either as an absolute URL or a URL relative to the page that the javascript is running from. To double check that your URL is working, try putting it into your location bar and making sure you get the file you expect. So as your URL stands now, it would be <currentPageURL>../_locales/en/messages.json. If that works, you will want to start debugging what’s going on in your .get. First, though, make sure your URL is valid.

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

Sidebar

Related Questions

Say I have the following file structure: app/ app.py controllers/ __init__.py project.py plugin.py If
MSBuild 3.5 I have the following project structure: trunk/MainSolution.sln trunk/Build/MyBuild.Proj trunk/Library/... trunk/etc... So far,
Let's say we have a solution with the following structure: Project.DAL - Data access
I have an Xcode project with the following group structure: ProjectName/ Classes/ class1.h class1.m
If i have the following directory structure: Project1/bin/debug Project2/xml/file.xml I am trying to refer
I have the following directory structure. root --src ---tests src contains the source &
I have a project using autoconf and automake with following structure: / src/ class.h
The following have been proposed for an upcoming C++ project. C++ Coding Standards, by
Suppose I have the following directory layout in a Maven project: src/ |-- main
I have the following XML document: <projects> <project> <name>Shockwave</name> <language>Ruby</language> <owner>Brian May</owner> <state>New</state> <startDate>31/10/2008

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.