Opened 12 years ago

Closed 12 years ago

#34 closed defect (fixed)

geomoose.html loading problem

Reported by: bfischer Owned by: theduckylittle
Priority: critical Milestone: 2.6
Component: GeoMOOSE/JS Version: 2.6
Keywords: Cc:

Description

Can not get geomoose.html to load properly from trunk. I did get geomoose_dev.html to work just fine. There seems to be differences in which JS files are referenced in. It might make sense to get geomoose.html working properly then delete geomoose_dev.html from trunk. I also get errors in firebug reference these JS files could not be found.
/libs/dojo-1.6.1/dijit/nls/en/common.js,
/libs/dojo-1.6.1/dijit/nls/en/loading.js,
/libs/dojo-1.6.1/dijit/form/nls/en/validate.js,
/libs/dojo-1.6.1/dijit/form/nls/en/ComboBox.js
/libs/dojo-1.6.1/dojo/nls/en/colors.js

Change History (6)

comment:1 by theduckylittle, 12 years ago

There is a distinct reason for geomoose and geomoose_dev, primarily one is setup for dynamic loading of the code, the other for the compiled version. That is distinctly useful when doing debugging in both the wild and development. I would propose we change the names to "index" and "dev" instead.

comment:2 by theduckylittle, 12 years ago

Owner: set to theduckylittle
Status: newaccepted

comment:3 by theduckylittle, 12 years ago

Okay, this should be fixed in r634

comment:4 by bfischer, 12 years ago

The geomoose.html seems to load now. The only confusing part for me is the difference between the folders where all the javascript is stored. For example there is a geomoose folder that has some .js files in it then another geomoose folder nested within that. Then there is also a build and libs folder. To me the libs folder makes sense but perhaps the build folder should be within that.

I guess I wondering if this is the finally directory structure or if you plan on revising it yet. The geomoose.html file also loads config.js and main.js. Either way I'm thinking we should have a doc that explains the contents of each folder.

comment:5 by theduckylittle, 12 years ago

This is the problem of not being able to full port over EVERYTHING into the Dojo constructs yet. Here's the description of what's going on:

  • build/* - This is the directory that contains all the compressed geomoose code.
  • geomoose/* - Parent directory of all of the project's Javascript.
  • libs/* - These are the dependency libraries.
  • geomoose/GeoMOOSE - The name space for all of the dojo-style converted JS files. This is really most of the code at this point but there is a lot of startup code that I haven't been able to fully convert over.
  • main.js and config.js are still necessary because of the way in which we do startup and config/customization on sites.

comment:6 by theduckylittle, 12 years ago

Resolution: fixed
Status: acceptedclosed

As per our conversation in today's PSC:

  • Copied the OpenLayers.js "build" and resources to the "build/" directory.
  • This ticket is otherwise satisfied, so I'm going to close it.

"Copy" OL revision: r701

Note: See TracTickets for help on using tickets.