I have an unexpected fault in my code. The code is inside chrome extension made by my friend, but I'm rigt now unable to contact him. Extension works fine until now, so I don't know what happens during last weeks (maybe some updates...)
Fault: Uncaught ReferenceError: myFunction is not defined
So, problem is in this part of my code in bookmarklet.js
oknoObsah=oknoObsah+"<td align='center'><img onclick=\"setTimeout(function(){myFunction('"+encodeURIComponent(images[i].src)+"');}, 3000);document.getElementById('"+i+"').style.border='3px solid red';oldVybrano=document.getElementById('vybrano').value; if(oldVybrano!='' && oldVybrano!="+i+")document.getElementById(oldVybrano).style.border='0px solid red';document.getElementById('vybrano').value="+i+";\" src='"+images[i].src+"' id='"+i+"' style='max-height:75px; max-width:75px; border: 0px solid red;'></td>";
Any idea what is wrong?