Can't see image

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • zion

    #1

    Can't see image

    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


  • =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=

    #2
    RE: Can't see image

    The "file//c..." moniker specifies a local resource (in other words,
    "c:\test.gi f").
    Unless this file is actually present on the local machine, you won't see
    anything.
    Normally one references Image urls in the following manner:

    "http://myserver/images/test.gif"
    -- Peter
    Recursion: see Recursion
    site: http://www.eggheadcafe.com
    unBlog: http://petesbloggerama.blogspot.com
    BlogMetaFinder: http://www.blogmetafinder.com



    "zion" wrote:
    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
    >
    >
    >

    Comment

    • =?Utf-8?B?S2l0dA==?=

      #3
      RE: Can't see image

      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


      "zion" wrote:
      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
      >
      >
      >

      Comment

      • mark macumber

        #4
        div size

        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

        Comment

        Working...