I’m not 100% sure if this is a bug, but I don’t understand the logic behind it anyway. I’ve got a few JS files in my workspace which lists…
src declaration is not found.
style declaration is not found.
Identifier ‘style2’ allready declared as var*
function changeFlag(element, imagePath)
{
var filename = element.value;
if (filename === '')
{
filename = '0';
}
document.getElementById("flag").src = imagePath + filename + ".png";
}
function toggleLayer(whichLayer)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
style2.display = style2.display? "":"block";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = style2.display? "":"block";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = style2.display? "":"block";
}
}
I’m also getting ++ and — is considered harmful type warnings. So i went to the MyEclipse Editor javascript properties and unticked this option but didn’t seem to make any difference.
Hope this helps!
Eurig
http://www.eurig.co.uk