I've got a script that works in Firefox and Opera but not IE7 or the Firefox IE tab.
It's my understanding that IE is DOM-compliant, so do I need to do special coding for IE?
(and i thought DOM compliance was all about getting away from browser sniffing and multiple codings)
Anyway, the relevant JS code, if needed:
[INDENT]<script type="text/javascript" language="text/javascript">
// this will populate all the areas with the proper info and images
function fillGallery(choice) {
//locate and extract data
thisArtwork = eval(choice.getAttribute("id"));
artTitle = thisArtwork[0];
artDimensions = thisArtwork[1];
artMaterial = thisArtwork[2];
artDate = thisArtwork[3];
artLocation = 'FiveHundreds/'+thisArtwork[4];
artCount = thisArtwork[5];
//locate the parts of the page that will be changed
title = document.getElementById("title");
datemade = document.getElementById("datemade");
material = document.getElementById("materials");
dimensions = document.getElementById("dims");
more = document.getElementById("more");
placeholder = document.getElementById("placeholder");
//change the data in those parts
title.firstChild.nodeValue = artTitle;
datemade.firstChild.nodeValue = artDate;
material.firstChild.nodeValue = artMaterial;
dimensions.firstChild.nodeValue = artDimensions;
//more.firstChild.nodeValue = artLocation;
placeholder.setAttribute("src",artLocation);
}
</script>
[/INDENT]