Page 1 of 1

works in Opera but not IE

Posted: Thu Jan 22, 2004 8:54 pm
by jtc970
why would this work in Opera but not in IE

Code: Select all

<SCRIPT LANGUAGE="Javascript"> 
function image_reload() &#123; 
name = "shback"; 
imgSrc = "backs/"+form1.backs.value; 
form1.text.value = imgSrc; 
var x = 300;      // width of picture 
var y = 100;      // height of picture 
   tag = document.images&#1111;name]; 
      img = new Image (x, y); 
      img.src = imgSrc; 
      tag.src = img.src; 
      return; 
&#125; 
</script>
'backs' is a listbox in form1
in Opera everything works, 'form1.backs.value' = what it should be
but in internet explorer 'form1.backs.value' doesnt have any value

thanks for any info

Posted: Fri Jan 23, 2004 11:01 am
by jtc970
here is the page as example
http://sigs.hopto.org

works great in opera

not so well in IE

Posted: Fri Jan 23, 2004 1:30 pm
by Unipus
well, you haven't given a name or value to any of your <option>s

Posted: Fri Jan 23, 2004 2:02 pm
by jtc970
thanks :D works now;