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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:22:47+00:00 2026-06-11T19:22:47+00:00

Hi all and thanks for the help! I cannot get Dojo require to look

  • 0

Hi all and thanks for the help!

I cannot get Dojo require to look for relative paths to the baseUrl. The request path requires for my tManager/pageList.js object are aways “/tManager/pageList.js” when they should be “js/tManager/pageList.js”. It works just fine when I add “js/” to the require path but i’d really like these all to be relative. Here is my code.

<script type="text/javascript">
var dojoConfig = {
    baseUrl: "js/",
    isDebug: true,
    tlmSiblingOfDojo: false,
    async: false,
    packages: [
        { name: "dojo", location: "lib/dojo" },
        { name: "dijit", location: "lib/dijit" },
        { name: "dojox", location: "lib/dojox" },
        { name: "tManager", location: "tManager/" }
    ]
};
</script>
<script type="text/javascript" src="js/lib/dojo/dojo.js"></script>
<script type="text/javascript">
require([
    "dojo/dom",
    "dojo/ready",
    "tManager/pageList.js"
], function (dom, ready, pageList) {
    ready(function () {
        alert("hello world");
    });
});
</script>

Here is my folder structure:
\
\js\
\js\lib\
\js\lib\dojo\
\js\lib\dijit\
\js\lib\dojox\
\js\tManager\

Once again thanks for the help in advance!

  • 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-11T19:22:48+00:00Added an answer on June 11, 2026 at 7:22 pm

    Assuming your tManager/pageList.js is an AMD module get rid of .js extension in require. Otherwise your are performing generic script injection instead of loading a module.

    require([
        "dojo/dom",
        "dojo/ready",
        "tManager/pageList"  // <= do not use .js extension for AMD modules
    ], function (dom, ready, pageList) {
        ready(function () {
            alert("hello world");
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Thanks for your help! I'd like to output all companyName entries that have uploads
First, thanks for all the help I've received so far from StackOverflow. I've learned
First of all thanks for taking the time to look into this. I store
I cannot get text-overflow: ellipsis; to work... Maybe someone can give ma some help
I cannot get Bootstrap Carousel to start, um, carousel-ing. Below is all the code
First, I would to thank everyone for all the help they provide via this
Firs of all thanks for reading this. I'm having trouble updating the progress from
First of all thanks in advance, this has been very frustrating and I'm hoping
first of all thanks for taking your time! I'm a junior Dev, working with
Hi all and thanks in advance. I am new to the NoSQL game but

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.