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
• mkdirs
• Re: Web Development Project
• ** Site Hacked ** javascript inserted...
• Losing background/text color when converting HTML to PDF
• hidden div block when displayed, displays at an offset of 200px only in IE 6..
• help - sketch
• Re: Perl Script - File Handling.
• Open a file from website
• Re: to open 5 terminals from one and also execute different commands on each terminal


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-2008