Have a very simple piece of code. FF2 works fine first time hitting. IE7 doesn't work until you refresh. Why?
Code:
<head>
<!--- Main dojo scripts --->
<!--- <link rel="stylesheet" href="js/dojoroot/dojo/resources/dojo.css" type="text/css" />
--->
<script type="text/javascript" src="js/dojoroot/dojo/dojo.js" djConfig="parseOnLoad: true"></script>
<link rel="stylesheet" href="js/dojoroot/dijit/themes/tundra/tundra.css" type="text/css"/>
<!--- custom dojo scripts --->
<script type="text/javascript">
dojo.require("dijit.form.NumberSpinner");
dojo.require("dijit.form.DateTextBox");
dojo.require("dojo.parser"); // scan page for widgets
</script>
</head>
<body class="tundra">
<form action="createVWR_Step1_RoomInfo_action.cfm" name="createVWR_Step1_RoomInfo">
<table width="975" align="center" border="0" cellpadding="0" cellspacing="0" bgcolor="##e8eef7">
<tr>
<td align="center" >
Date to open
<input type="text" name="openDate" id="openDate"
value="2008-04-23"
dojoType="dijit.form.DateTextBox"
constraints="{min:'2008-04-23',max:'2008-05-23',formatLength:'short'}"
trim="true"
promptMessage="mm/dd/yyyy"
onChange="dojo.byId('cal1').innertHTML=arguments[0]"
invalidMessage="Invalid date. Use mm/dd/yyyy format." />
<div id="cal1"></div>
</td>
<td align="center" >
# of days open
<input dojoType="dijit.form.NumberSpinner"
style="font-size:12pt;border:0px solid blue;width:30%;"
value="3"
smallDelta="1"
constraints="{min:1,max:365,places:0}"
name="daysOpen"
id="daysOpen">
</td>
</Tr>
</table>
</form>
</body>
<!--- Main dojo scripts --->
<!--- <link rel="stylesheet" href="js/dojoroot/dojo/resources/dojo.css" type="text/css" />
--->
<script type="text/javascript" src="js/dojoroot/dojo/dojo.js" djConfig="parseOnLoad: true"></script>
<link rel="stylesheet" href="js/dojoroot/dijit/themes/tundra/tundra.css" type="text/css"/>
<!--- custom dojo scripts --->
<script type="text/javascript">
dojo.require("dijit.form.NumberSpinner");
dojo.require("dijit.form.DateTextBox");
dojo.require("dojo.parser"); // scan page for widgets
</script>
</head>
<body class="tundra">
<form action="createVWR_Step1_RoomInfo_action.cfm" name="createVWR_Step1_RoomInfo">
<table width="975" align="center" border="0" cellpadding="0" cellspacing="0" bgcolor="##e8eef7">
<tr>
<td align="center" >
Date to open
<input type="text" name="openDate" id="openDate"
value="2008-04-23"
dojoType="dijit.form.DateTextBox"
constraints="{min:'2008-04-23',max:'2008-05-23',formatLength:'short'}"
trim="true"
promptMessage="mm/dd/yyyy"
onChange="dojo.byId('cal1').innertHTML=arguments[0]"
invalidMessage="Invalid date. Use mm/dd/yyyy format." />
<div id="cal1"></div>
</td>
<td align="center" >
# of days open
<input dojoType="dijit.form.NumberSpinner"
style="font-size:12pt;border:0px solid blue;width:30%;"
value="3"
smallDelta="1"
constraints="{min:1,max:365,places:0}"
name="daysOpen"
id="daysOpen">
</td>
</Tr>
</table>
</form>
</body>

Additional info
JS error... dojo is undefined. But a refresh and all is well?!
More info
Appears to be failing on line 152 of the uncompressed file
while((tn=cn[i++])){
if(!console[tn]){
(function(){
var tcn = tn+"";
console[tcn] = function(){
var a = Array.apply({}, arguments);
a.unshift(tcn+":");
console.log(a.join(" "));
}
})();
}
}
More info part 2
Commented lines 151-163 to avoid the while loop that surrounds the error...
Now it works first time through and on refresh!
Works in IE7 and FF2... so why this issue and will commenting this out hurt anywhere else?
See if you have the problem
See if you have the problem if you break out the djConfig into a separate, preceding script tag, as most of the examples show, to replace the below:
Preceding script tag?
Can you please explain what you mean by "preceding script tag"?
Most examples of dojo usage
Most examples of dojo usage show putting the djConfig parameter in a script statement without any other script info, e.g., dojo.js, etc., and that script statement coming before (preceding) any other script statements.