I used to use a script, where you could select a profilepicture trough a popup. When you click the change image button, a popup show ‘your files’ from which you can select a photo, or eventually upload a new image. When clicked, the popup closes and the thumbnail on the profile is change to the one you just selected.
In IE7 it worked perfectly, however in IE8 it doesn’t do anything. When I run in compatability mode it works again. Can anybody tell from the script below what I’m doing wrong?
The code in the popup which is triggered by click an image:
[code]<script type = “text/JavaScript”>
<!–
function showFoto(img, elem) {
var o = opener.document.getElementById(elem);
o.value = img;
window.opener.toonFoto(img);
self.close();
}
//–>
</script>
The code in the main document:
[code]
function toonFoto(img) {
$(‘#hoofdFoto’).html(“<IMG src='”+img+”‘ border=0>”);
}
I can’t get any further. Maybe somebody can help me. Let me know if additional information is needed.