uestion about img tag

  • From: Alex Hall <mehgcap@xxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Sun, 05 Jul 2009 22:08:38 -0400

I have a function, the same one I sent to the list yesterday (though it works now) that takes the value of a "file" input, checks to be sure the path points to a jpg or png file, and then displays that image on a page in a div. I emailed the page to my mother so she could check that it was doing what it was supposed to, since I cannot see enough to tell if the image appeared. She said that after the function was called, a small square appeared (the right size for the image) but that an icon also appeared next to the square, an icon that looked like a torn picture. She is using Firefox on Vista. Since the image never appeared, just a border, I am assuming that this torn picture icon means that the image was not found. Is this correct? How can the image not be found when the user just browsed to it and selected it; that is, no manual typing of the path was involved, Windows gave the path to the page directly and I grabbed it and told the img tag to take that path for its src attribute. Any thoughts as to why this will not work? Below is how I set up my img tag, which is added to the div's innerHTML: pics.innerHTML="<img src='"+form.picpath.value+"' height=100 width=100><br>";


Have a great day,
Alex
__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts:

  • » uestion about img tag - Alex Hall