[editor: moving to the appropriate forum…]
I keep getting the following fatal errors when trying run a dojo.require("dojo.widget.TabContainer"); or a dojo.require to load any other type of dojo widget (Dialog, etc.).
Here is the code I have on a jsp page which I call head.jsp which does all the common head type work for all my jsp pages on my website:
Please advise on how to avoid displaying these FATAL error messages and allow to load these widgets correctly. Thanks.
/script type="text/javascript" src="/js/dojo/dojo.js" />
dojo.require("dojo.widget.TabContainer");
dojo.require("dojo.widget.LinkPane");
dojo.require("dojo.widget.ContentPane");
dojo.require("dojo.widget.LayoutContainer");
dojo.require("dojo.widget.FisheyeList");
var loadingDialog;
var loadingDialogContents;
var blockingDialog;
function fadeAndBlockPage() {
if (blockingDialog) {
blockingDialog.show();
}
return true;
}
function fadeAndBlockPageTimeOut() {
if (blockingDialog) {
blockingDialog.show();
setTimeout('blockingDialog.hide()',20000)
}
return true;
}
<%-- Meta refresh --%>
<%
StringBuffer sb = new StringBuffer();
sb.append("http://");
sb.append(request.getServerName());
int serverPort = request.getServerPort();
if (serverPort != 80)
{
sb.append(":");
sb.append(serverPort);
}
sb.append(request.getContextPath());
sb.append("/security.do?method=Logout&redirect=security.logout&forward.param.timedout=true");
String path = sb.toString();
%>
">
<%-- Loading dialog --%>
dojo.require("dojo.event.*");
dojo.require("dojo.html.*");
dojo.require("dojo.widget.Dialog");
function initDialogs() {
initLoadingDialog();
initBlockingDialog();
}
function initLoadingDialog() {
loadingDialog = dojo.widget.byId("loading-dialog");
loadingDialog.sizeBackground = dialogSizeBackground;
loadingDialogContents = document.getElementById("loading-dialog-contents");
}
function initBlockingDialog() {
blockingDialog = dojo.widget.byId("blocking-dialog");
blockingDialog.sizeBackground = dialogSizeBackground;
}
function dialogSizeBackground() {
if(this.bgOpacity > 0) {
var h = Math.max(
document.body.scrollHeight || document.documentElement.scrollHeight,
dojo.html.getViewportHeight());
var w = dojo.html.getViewportWidth();
this.bg.style.width = w + "px";
this.bg.style.height = h + "px";
}
this.bgIframe.onResized();
}
dojo.event.connect(dojo, "loaded", "initDialogs");

The source code above is the
The source code above is the older dojo 0.4x syntax.
Your message is posted in the dojo ~1.x forum section.
If you have installed a version of dojo higher than 0.4x, you would see the error you mention.
You can usually see the dojo version by typing dojo.version in the Firebug extension of the Firefox browser.