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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:39:36+00:00 2026-05-11T03:39:36+00:00

When I use an import such as <script type=text/javascript src=http://o.aolcdn.com/dojo/1.2.3/dojo/dojo.xd.js djConfig=parseOnLoad:true, isDebug: true></script> I

  • 0

When I use an import such as

<script type='text/javascript' src='http://o.aolcdn.com/dojo/1.2.3/dojo/dojo.xd.js'       djConfig='parseOnLoad:true, isDebug: true'></script> 

I get the error

dojox.data.CsvStore is not a constructor  

for lines such as

var stateStore = new dojox.data.CsvStore({url: 'dojo-passcsv.php', label: 'name'}); 

but the error vanishes if I use an import from a local installation of dojo such as

<script type='text/javascript' src='dojo-release-1.2.3/dojo/dojo.js'      djConfig='parseOnLoad:true, isDebug: true'></script> 

I would really want to be able to use a CDN hosted dojo installation. Is there a known problem between the DojoX libraries and dojo.xd.js?

Thanks in advance,

Animesh

P.S. The dojo.require('dojox.data.CsvStore'); declarations are in place.

P.P.S The full ‘working code’ is below. Replacing the CSS and JS references with those from the CDN breaks it.

<html> <head> <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>     <style type='text/css'>         @import 'dojo-release-1.2.3/dijit/themes/tundra/tundra.css';         @import 'dojo-release-1.2.3/dojo/resources/dojo.css'     </style>     <script type='text/javascript' src='dojo-release-1.2.3/dojo/dojo.js'          djConfig='parseOnLoad:true, isDebug: true'></script>     <script>         dojo.require('dojox.data.CsvStore');         dojo.require('dijit.Tree');         dojo.require('dojo.parser');     </script>     <script type='text/javascript'>         var stateStore = new dojox.data.CsvStore({url: 'states.csv', label: 'name'});     </script>   </head> <body class='tundra'>     <div dojoType='dijit.Tree' store='stateStore' labelAttr='name' label='States'>     </div> </body> </html> 
  • 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. 2026-05-11T03:39:37+00:00Added an answer on May 11, 2026 at 3:39 am

    Reacting to your update:

    I strongly think you should try with dojo.addOnLoad(). Together, the last two <script> sections of your <head> would become:

    <script>    dojo.addOnLoad(function(){       dojo.require('dojox.data.CsvStore');       dojo.require('dijit.Tree');       dojo.require('dojo.parser');  /* I don't think you really need this line */       var stateStore = new dojox.data.CsvStore({url: 'states.csv', label: 'name'});    }); </script> 

    The problem with your original code is that you cannot guarantee that the constructor function dojox.data.CsvStore has been read by the time you are about to create your stateStore instance of it. That’s where dojo.addOnLoad() comes in, giving you a guarantee that the rest of the javascript was loaded prior to executing the abstract function passed as parameter of addOnLoad().

    Because it’s an issue of timing, your own original code may work sometimes, maybe not others: it would depend on the download speed and the order in which your browser pieces together the various javascript bits. That’s why using dojo’s remote library may occasionally give different results from using your own local copy of the dojo library.

    That said, if you are using Firefox 3 (earlier than 3.0.6), then bear in mind what I said about the known bug. In that case, you may want to put that <script> block immediately before the closing </body> tag… (That option would work on other browsers as well.)

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

Sidebar

Ask A Question

Stats

  • Questions 78k
  • Answers 79k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer VBScript has the Execute statement, so if you don't want… May 11, 2026 at 3:58 pm
  • added an answer ActiveX are not supported by an another browser than IE,… May 11, 2026 at 3:58 pm
  • added an answer >>> l = [ 1, 2, 3, 4 ] >>>… May 11, 2026 at 3:58 pm

Related Questions

my .h file is as follows #import <Foundation/Foundation.h> @interface MyClass : NSObject { }
How do I make Apple's Cocoa GUI controls not automatically flip lines that contain
I'm working on an import (from Excel) dialog to select ranges of cells. When
It is to my understanding that one should use a forward-class declaration in the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.