works in Opera but not IE

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
jtc970
Forum Commoner
Posts: 38
Joined: Sun Jan 18, 2004 11:49 pm

works in Opera but not IE

Post 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
jtc970
Forum Commoner
Posts: 38
Joined: Sun Jan 18, 2004 11:49 pm

Post by jtc970 »

here is the page as example
http://sigs.hopto.org

works great in opera

not so well in IE
Unipus
Forum Contributor
Posts: 409
Joined: Tue Aug 26, 2003 2:06 pm
Location: Los Angeles, CA

Post by Unipus »

well, you haven't given a name or value to any of your <option>s
jtc970
Forum Commoner
Posts: 38
Joined: Sun Jan 18, 2004 11:49 pm

Post by jtc970 »

thanks :D works now;
Post Reply