single layer dojo build results in "undefined./resources/blank.gif" for dijit.Menu -


It appears that the DIGIT is dependent on menu dojo / resources / blank.gif When we create dojo and leave it in the release directory we are creating a single layer - our build profile is as follows:

   

Our problem occurs when we try to rename dojo.js and when we do something else, dojo now dojo / resources The directory can not find here is an example:

  & lt; Html> & lt; Head> & lt; Script type = "text / javascript" src = "dojo_release_140_src / release / dojo / dojo / full-build.js"> & lt; / Script> & lt; Link rel = "stylesheet" type = "text / css" href = "dojo_release_140_src / dijit / themes / dijit.css" /> & lt; Link rel = "stylesheet" type = "text / css" Href = "dojo_release_140_src / dijit / themes / tundra / menu.css" /> & lt; Script type = "text / javascript"> dojo.require ("dijit.menu"); Dojo.ready (function () {pMenu = new dijit.Menu ({targetNodeIds: ["menu"], leftClickToOpen: true}); pMenu.addChild (new digest popup menu item ({label: "watches"})}} ); & Lt; / script> & lt; / head> & lt; body class = "tundra"> an id = "menu"> menu & lt; / a> & lt; / body> & lt; / Html>  

As shown, the browser will attempt to bring the undefined / source / block .gif ; However, if we do full-build .js to dojo.js , then do this dojo_release_140_src / release / dojo / dojo / resources / blank.gif .we do the form of dojo.js Can not name in - now Based on our domain, we are working around it by making a undefined. directory and pasting the image there.

Help!

I believe the bootstrap script looks for the tag that contains 'dojo.js' to determine the path to the resource loading If you want to change the name of dojo.js, try defining before the SCRIPT tag, by changing your name and loading dojo. Is obtained.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -