Login Register

build

How to build localization bundles into layer?

Web application seeks fewer server round-trips. I hope there're only 2 js in every of my pages. One for dojo.xd.js, another for my page layer, e.g. page.js.
I'm trying to use the i18n supports offered by dojo core. But it seems no way to build the localization string object into the custom layer (page.js).
Am I right?

Getting "uncaught JavaScript runtime exception" when trying to dijit build with 1.2.3

I am trying to build my custom namespace layer; however, in doing so I am consistently getting an error in building the purely dojo/dijit portion.

I have commented out everything in my build profile except

dependencies = {

        layers: [
                {
                        name: "../dijit/dijit.js",
                        //resourceName: 'dijit',
                        dependencies: [
                                "dijit.dijit"
                        ]
                }
        ],

        prefixes: [
                //[ "mojo", "m:/mojo-release-0.9.0/mojo" ],
                [ "dijit", "../dijit" ],
                [ "dojox", "../dojox" ]
        ]
};

dojo CSS includes

Hi,

I have a couple of questions about the use of CSS resources:

1. If I am using dijit, and am including the theme (say tundra.css), does dojo.css still need to be explicitly loaded? If yes, is there a way to set up the build so it is interred inside the built tundra.css?

2. Ditto for dijit.css. I have noticed that when loading dojo from Google's CDN, there are separate requests for tundra.css and dijit.css, even though tundra.css @import-s dijit.css, so I would have thought that the build process would have combined these 2 files?

Thanks
Amit

Dojo XD Custom Build: What am I missing?

Hello Dojo'ers,

I am trying to test out the Dojo build system to ensure it will meet my needs in the future for my current project.

I have a build profile that looks like this:

dependencies ={
  layers:  [
    {name: "MobusLayer.js",
      resourceName: "custom.MobusLayer",
      dependencies: [
                "dojo.data.ItemFileReadStore",

                "dijit._Widget",
                "dijit._Templated",

                "tcpsocket.Orbited"
      ]
    }
  ],
  prefixes: [
      [ "dijit", "../dijit" ],
      [ "dojox", "../dojox" ],
      [ "tcpsocket", "../tcpsocket" ],
  ]
};

dojo.provide and versioning

Hi,

I want to provide 2 versions of an object in application, depending on the usage: i.e. one that pulls data from my server using XHR and another to be used when app is deployed as a plugin on 3rd party sites, uses JSON to communicate with my server.
The 2 versions have an identical interface. I am wondering if this idiom would work (I load everything X-domain):
I keep a file obj_v1.js which has:

dojo.provide("scope.obj_v1");
scope.obj = {...};

I also keep a file obj_v2.js which has:

dojo.provide("scope.obj_v2");

Custom build--how to exlude dojo/dijit components from custom namespace build output?

I am attempting to create a custom build of dojo for my organization.

All of our internally developed widgets and utility support functions are in a namespace mojo.

I would like to create a custom build of dojo which creates a dojo.js with the standard dojo components we use, a dijit.js with the standard digits, and a mojo.js (currently called mojoForm.js in my build profile so I can be sure to identify the file correctly in the output) which combines all of our custom widgetry.

Error in Explorer: "Bundle not found : loading in dijit ,locale=en"

After completing a simple build on my dojo script (I just needed to include the accordion script) I'm receiving an error message on IE 6: "Bundle not found loading in dijit ,locale=en." I assume this means that something isn't loading before a request is being made.

I'm a newbie here, so I'm not even sure where to begin to debug this problem.

Optimizing serveral layers

Hello, I want to define serveral layers for my application. The main layer will be loaded when the page loads, while the others will load during navigation.

build 0.9

Hola List,

Definitely I'm missing something to get my build to work. It compiles fine but the result is not as expected: WHYYYYY???!!!!

I WOULD love to have a whatever.js file that has exactly the js I need, and nothing else. It's about 20 js files, included my own stuff which is packed under the dojo directory. My profile file looks like that:

dependencies ={
layers: [
{
name: "myWidgetDojo.js",
dependencies: [
"dijit._base.bidi.js",
"dijit._base.focus.js",
"dijit._base.manager.js",

Cross Domain (XDomain) Builds for my new modules

Hi,

I build new modules using the " dojo.declare("new class", null) " statement.
I am loading dojo from another domain and there for I am using the simple Xdomain build.
How should I build my new modules for being able to use them from another domain?
If I just reference to the, using dojo.registerModulePath and then dojo.require i recieve error in Firefox.

thanks

Syndicate content