Login Register

module

Problem with custom build and extra module

I'm using the latest dojo from subversion, and have successfully created and used a custom build. The problem is that I also have a custom module which I have been unable to get to work when I either include it in the custom build or simply compress it via shrinksafe.

Here's my build script and profile that work:

./build.sh profile=tradegator localeList="en-us" copyTests=false action=clean,release releaseDir=../../release/ releaseName=tradegator version=1.0-b1

Here's my profile: (tradegator.profile.js)

dependencies = {
layers: [
{

Loading custom modules in IE7

I am trying to build a custom widget, which I have placed in my own namespace mojo; the widget's name is mojo.View.

When I test in FireFox 3, everything works beautifully--well, except for my own bugs, but I can handle those.

When I test in IE7, I get the error:

Could not load 'mojo.View'; last tried '/dojotest.nsf/mojo/View.js'

(FYI, dojotest.nsf is a Domino database, but it serves web pages like any other web server, and so should not e an issue.)

I have tried googling for this, and found JBurke's example described here

Any know if I can do this eval("new " + selectedModule + "." + selectedWidget + '({title: "Click Me!"}, "widgetContainer")');

I'm trying to use dojo.data to load modules and widget stores dynamically. I can get to this point where I if I hardcoded selectedModule and selectedWidget the module namespace is set up and all files and dependencies have been ajaxed into dojo but I can't instantiate. Any ideas? Solutions? A better way to do this... kind of going for a dojo factory effect.

Hardcoded version works
new dojoCustom.form.Button({title: "Click Me!"}, "widgetContainer");

This version not so much...
eval("new " + selectedModule + "." + selectedWidget + '({title: "Click Me!"}, "widgetContainer")');

Syndicate content