I'm in the process of learning Dojo (I'm using v1.1.1) and ran across a serious problem I can't figure out. Could be me doing something stupid, I suppose, but here's the deal. I've created a test web page to try out various things. The head section starts with the following code:
<style rel="stylesheet" type="text/css">
@import "dojo-release-1.1.1/dojo/resources/dojo.css";
@import "dojo-release-1.1.1/dijit/themes/tundra/tundra.css";
@import "styles.css";
</style>The page loads and displays fine in Firefox, but when I try it in IE6, the styles and other Dojo stuff seems to be missing, plus I get the "caution" icon in the lower left corner of the screen, and double-clicking it displays the following:
"Problems with this Web page might prevent it from being displayed properly or functioning properly." (& etc.). The details display says:
Line: 46
Char: 5
Error: Expected identifier, string or number
Code: 0
In experimenting to pin down the source of the error, I discovered that if I removed the @import statements for the dojo.css and tundra.css style sheets, the error goes away. At first I assumed that I must have been coding things in some way that IE didn't like (but that Firefox didn't care about), so I researched the formats for @import, browser support, etc., but all that looked good. I tried moving the imports for the two dojo style sheets into my styles.css style sheet, but the same error occurs. I also tried leaving just one of them in, and then just the other, but the same error occurs either way. I took a quick look through the two dojo style sheets, but didn't see anything obviously wrong with them, nor can I find through web searches and searches of this site any indication that anyone else is having this problem.
Soooo . . . from what I can see it looks like there is a bug in the dojo style sheets somewhere that IE is choking on, but that also seems rather unlikely because nobody else seems to be reporting the problem. I thought that it might be a bad download or errors on uncompressing the files, but I've downloaded and uncompressed files separately to two different computers (both using 7Zip to uncompress them, however), and the same error occurs on both machines.
Anybody have any ideas? Thanks!
--Dale

Try removing...
the rel=stylesheet attribute. That's something that belongs on link tags but not the style tag. Also make sure you don't have a base tag defined, that can cause issues at times.
Didn't Work
Thanks for the suggestion. I gave it a shot, but get the same error. Also, I don't have a base tag defined, so that's no the issue, either.
--Dale
Never Mind...
I'm not sure what happened, but today it's working, and about all I can think that might have made any difference at all is that the PC was rebooted. Odd, but so long as the problem goes away I'm not going to ask too many questions. ;-)
--Dale
Just a thought
I have had problems in the past with browsers caching linked pages and not properly reloading them when I press reload. This was a while ago but it is not obvious that a browser should reload all @import-pages (you might think so but afaik there is not standard "reload" behavior specified for browsers).
Rebooting the computer might clear the cache.
Could this have been the problem??
A work around I have used in the past is to open the .css or .whatever page directly in the browser and press reload to make sure it is reloaded.
/Fredric