Posted - 08/12/2023 : 09:20:12
On the proddetail.asp page there is a Javascript function that is used when showing the giantimages. For some reason this was not working anymore after updating to the latest version. I found two issues. The line if(document.getElementById("extraimcnt"+theitem))document.getElementById("extraimcnt"+theitem).innerHTML=pIX[theitem]+1;
seems to be missing {}. So should be: if(document.getElementById("extraimcnt"+theitem)){document.getElementById("extraimcnt"+theitem).innerHTML=pIX[theitem]+1;}
But more important the assignment var imlist=pIM[theitem]; seems to be having problems. theitem=999 and pIM[999} is declared and filled a few lines above but still when I log imlist and pIM[999] in the console of my browser both are reported as being undefined. Strangely enough also a pIM[0] is being declared earlier on, so maybe this is causing a conflict. As a quick fix I moved some code inside the displayprodimagenum function. /* <![CDATA[ */<% print "imlist=[" for index=0 to numallgiantimages-1 print IIfVs(index>0,",")&"'"&encodeimage(allgiantimages(0,index))&"'" next print "];" %>
This works, but I am puzzled why this code was now not working while the almost the same code in older versions was working. What has happened and why is pIM[0] and pIM[999] declared? Greetings, Jaap jaapg@promanent.comPromanent b.v. www.promanent.com | www.vaarwinkel.nl
|