Skip to main content

What should be done to use dojo in glue

1 reply [Last post]
Joined: 2007-03-12

Need to use method in glue.js. But I don't use any of the dojo widgets. Is it possible to use this method in glue.js. If so what needs to be done?

In the config.json file while loading my lib - specified:

{"id": "testLib",
"version": ".4.1",
"libs": ["/resources/libs/dojo/version.4.1/dojo.js", "/resources/injector.js", "/resources/jmaki-common.js" ],
"preload" : "if (typeof djConfig == 'undefined') djConfig = { parseWidgets: false, searchIds: [] };"

But when I use the method in the glue.js - I still get the error - "dojo is undefined".

Message was edited by: gomathy

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-07-31

Try the following at the top of your glue.js


This will do a load synchronously.

With the dojo.type defined in the config.json as you have it defined.

If this doesn't work let us know.