sridhars711 / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

Icon issue in IE when putting JS in same folder as HTML #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm loading the JQuery/dynatree libraries in the HTML file like so:
<script src="jquery.js" type="text/javascript"></script>
<script src="ui.core.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="skin/ui.dynatree.css" />
<script src="jquery.dynatree.js" type="text/javascript"></script>

I've basically moved the .js files to the same folder as the HTML file.

In Internet Explorer, the paths to the icons become something along the
lines of:
.../jquery.dynatree.j/skin/ltFld.gif

This results in broken images, of course.

In Firefox, however, the paths are correct:
.../skin/ltFld.gif

Besides noticing this issue in my own project, I also reproduced it on
sample-quick.html.

Original issue reported on code.google.com by andreasblixt on 29 Oct 2008 at 9:23

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 1 Nov 2008 at 9:41

GoogleCodeExporter commented 9 years ago
As a workaround the path can be explicitly specified like this:

$("#tree").dynatree({
    imagePath: "skin/",
    [..]

Original comment by moo...@wwwendt.de on 1 Nov 2008 at 9:58

GoogleCodeExporter commented 9 years ago
Fixed with r69

Original comment by moo...@wwwendt.de on 1 Nov 2008 at 10:06

GoogleCodeExporter commented 9 years ago
considered verified

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:12