everything works perfectly in both firefox and iexplorer
now i install it on a remote server ... tried 3 different ones and i got the same problem everywhere .......
this is the code that's not executing
Expand|Select|Wrap|Line Numbers
- var fieldNameArray = new Array('aa','ab','ac','ba','bb','bc','ca','cb','cc','da','db','dc','ea','eb','ec','fa','fb','fc','ga','gb','gc','ha','hb','hc','ia','ib','ic' );
- for (var i = 0; i<27;i++) {
- var index = fieldNameArray[i];
- var targetDiv = document.getElementById(index);
- var fieldValue = "url('/images/" + boardSetupXML.getElementsByTagName(fieldNameArray[i])[0].firstChild.nodeValue + ".jpg')";
- targetDiv.style.backgroundImage = fieldValue;
- }
i tried alert(fieldValue) in the loop ... and it correctly displays 21 image files .. like it should
but combine the two .. and its not working
it works locally ... perfect, but not on remote server