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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:10:15+00:00 2026-05-12T13:10:15+00:00

I want to run Dojo/Dijit with the Google CDN: <script type=text/javascript src=http://ajax.googleapis.com/ajax/libs/dojo/1.3.2/dojo/dojo.xd.js> </script> I’ve

  • 0

I want to run Dojo/Dijit with the Google CDN:

<script type="text/javascript" 
         src="http://ajax.googleapis.com/ajax/libs/dojo/1.3.2/dojo/dojo.xd.js">
</script>

I’ve tried 1.3.2, 1.3, 1.2 and all give this same problem.
If what I’ve read is true, I only need to include the dojo.xd.js – then the requires will properly find dijit somehow relative to dojo.

In Firebug I see the following:

http://ajax.googleapis.com/ajax/libs/dojo/1.2/dijit/Menu.js
200 OK

I’m confused by this, because I if http status=200 is okay – then why is this line showing up in red?

The next line says

could not load ‘dijit.Menu’; last
tried ‘../dijit/Menu.js’

I had this working with all the Dojo/Dijit source code local – but I’m determined to get it running with the CDN.

I did some searches, and the best I could find was that Menu.js was included in certain releases, but I think they were talking 1.2 or before.

Same error occurs in the Chrome browser.

Thanks for helping.
Neal Walters

More Info Added:

Thanks for the example. I took it and got a simple menu working:

http://3wcloud-com-provisioning-qa.appspot.com/testDijitMenuOnly

Here’s the “beast” that I’m trying to get working.
http://3wcloud-com-provisioning-qa.appspot.com/testDijit

This was originally a copy of the Dojo Theme demo – and it was working when I was running with Dojo local. It does a delayed/manual parse.

Like I said above, I tried 1.2, 1.3, 1.3.2 and so on, so it was just a matter of timing when I copyied/pasted into my question.

And OOPS – I didn’t have djconfig – so I added that – but similar problem – just more explicit paths.

Thanks again – I’m going to love Dojo when I over these little humps.

This is the page I’m trying to reproduce:
http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/themes/themeTester.html?theme=soria

  • 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-12T13:10:15+00:00Added an answer on May 12, 2026 at 1:10 pm

    Do you have something strange in your djConfig? The fact that it’s spitting out “../dijit/Menu.js” makes it seem like you have a path setting in there.

    I set up a simple demo page that uses the Google CDN and does:

    dojo.require('dijit.Menu')
    

    without problem.

    Also, the script tag has 1.3.2 but it’s loading menu from 1.2 which is strange.

    Post a the full source code of what isn’t working and that’ll help track down the problem.

    EDIT AFTER POSTING LINK

    Remove these lines from your testDijit page:

    <script type="text/javascript" src="/dijit/dijit.js"></script>
    
    <script type="text/javascript" src="/dijit/dijit-all.js" charset="utf-8"></script>
    

    YET ANOTHER EDIT

    Call me crazy (since you don’t seem to approve or upvote answers on SO making this a kind of no-op for me) but I got it working with the CDN here.. It still has problems because the CDN doesn’t have all the test files on it (dijitTest.css and countries.json for example). You can download it and do a diff on your ow file to see what I changed. I mostly added a bunch of missing requires and changed paths to CSS and images. You also have a script tag referencing /dojo.js in your file.

    I’m curious why you are so driven on getting the dijit tester running on your app since it seems like it’d be more fun/productive to learn dojo solving problems within your application.

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

Sidebar

Related Questions

I want run a script as follows: runner: ssh 'java program &' ssh 'java
I want to run a script remotely. But the system doesn't recognize the path.
I want to run a simple JavaScript function on a click without any redirection.
I want run a Bash script as root , but delayed. How can I
I want to run javascript/Python/Ruby inside my application. I have an application that creates
I want to run a command as soon as a certain text appears in
I'm struggling with the asset pipeline. I'm loading dojo from Google CDN putting this
I want to run a batch script every time before starting program for debugging.
I want run a php script weekly using a cron job, however the script
Why this code don't work,when i want run this code vwd 2008 express show

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.