codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Internet explorer doesnt load img on div  Coder_66 at 19:22 on Sunday, September 09, 2007
 

Hello,
I am having problems uploading images asynchronously into divs.
I have created a function to load the image into a div:
<script>
function load_content(img_name)
{
document.getElementById('content').innerHTML = "<img src='images/"+img_name+"' alt=''>";
}
</script>

It works fine in all browsers except in internet explorer. It loads the image partially or doesnt loaded at all.
You can see a sample of the problem at:
http://www.lestoree.com/dev/test/index_test.html
if you open it in FF you will see how I want it to work. Open it in ie6 to see the weird behavior.
Any ideas??
Thanks a lot

  Re: Internet explorer doesnt load img on div  Coder_66 at 06:49 on Tuesday, September 11, 2007
 

Solution:
add return false to the escape load content funtion once it run.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: repaint() slow performence..
•  To match on current line and the next line using perl?
•  Re: Text wrapping on C# webforms buttons
•  Increment revison when same item number
•  Re: Internet explorer doesnt load img on div
•  finger print reader?????
•  Re: How to concatenate a string and a variable using perl?
•  Re: questions on java
•  Frusturating loop


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007