Can't see image

  • Thread starter Thread starter zion
  • Start date Start date
Z

zion

Hello,

My webservice return image tag with the image path: <img
src="file//c:\test.gif" /> and I enter it to div innerHTML.
The path and the image is ok.
why I can't see the image? is there another way to do it?

Thanks
 
It could just be that you are missing a colon.

Instead of

<img src="file//c:\test.gif" />

try

<img src="file://c:\test.gif" />

Note the colon after 'file' and before '//'

later
 
Is the DIV big enough to see the inside data? Try setting
style="width: 500px; height: 500px;"
on the div just to make sure you can see the whole thing.

EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top