Login Register

require

Loading Dojo in application IFRAME

I have this scenario...

My application based on TAB that in every TAB I load a IFRAME.
In every IFRAME there are a complex form that I have rendering with dojo widget and other function ( I have create a Upload control for example)

My question is:

"Every time that I load the IFRAME ...in the console of Firebug I see that dojo.js and my custom dojo.require js are loaded and this operation it's no fast.."

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");

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