Login Register

require

beefing up dojo.require(), to load modules on demand

Hi,
I am porting my web app (at lipik.in) to Dojo, for a variety of reasons, incuding, modularity, extensibility etc.
No big surprises so far (thank you!), but I have a couple of questions:

IMPORTANT - dojo functions are all undefined

Hello!
I'm new in this forum and also with dojo. I used to create my first dojo-project. I tried it with ATF and I got my new project-structure:

>MyProject
>>WebContent
>>>dojoAjax
>>>test.html

The problem concerning the code is, that every dojo-function is UNDEFINED. I have the right path to the dojo.js file, because the compiler knows the object "dojo". For example: dojo.require -> The function require is undefined...
Hope someone knows a solution...
Thank's

Error loading contents of dojo.require(...)

I'm able to get dojo working in a sandbox environment linking to dojo with relative path names. I'm having a problem getting it to work completely when in use inside of Struts/Tiles. I seriously doubt this makes any difference but I just can't seem to load any additional modules with dojo.require(...) without getting an error.

E.g., if I try 'dojo.require("dojo.parser")' I see the following error in firebug:

GET https://frisky.ecovate.com/cc/default/undefined./parser.js 404 (20ms)
Could not load 'dojo.parser'; last tried './parser.js'

Problem with custom build of dojo-1.0.1 Mac OS X ArrayIndexOutOfBoundsException thrown when replacing require/requireIf stateme

rJLBMAC:/work/dojo/dojo-1.0.1-src/util/buildscripts john$ vi build.sh
JLBMAC:/work/dojo/dojo-1.0.1-src/util/buildscripts john$ vi build_release.sh
JLBMAC:/work/dojo/dojo-1.0.1-src/util/buildscripts john$ vi README
JLBMAC:/work/dojo/dojo-1.0.1-src/util/buildscripts john$ ./build.sh profile=standard loader=xdomain action=release
release: Using profile: profiles/standard.profile.js
release: Using version number: 0.0.0.dev for the release.
release: Deleting: ../../release/dojo
release: Copying: ../../dojo/../dijit to: ../../release/dojo/dijit

Syndicate content