Results 1 to 9 of 9
  1. #1
    New Lounger
    Join Date
    Jul 2007
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    HTML display image

    I got a software that allow me to create test plan.
    and generate the report as HTML format.
    But i just find it cannot display the picture that is browse to.
    is there a way (code) to let everbody see the image?

  2. #2
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: HTML display image

    I don't know what software you are using, or how it works, but the standard HTML for displaying an image looks like this:

    [img]logosmall.gif[/img]

    where logosmall.gif is the relative path to the image file, and 'logo' is the alternative text.
    Regards
    John



  3. #3
    New Lounger
    Join Date
    Jul 2007
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: HTML display image

    i'm using testlog software.
    i using this code to link a file, then store the file into directore of database.
    but it also cannot work once move to another pc to view.
    Install Manual

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: HTML display image

    I assume this software creates the page on your computer and it works fine there. If that's right, there might be a problem with the way you are sharing the report. For example, if you email it, related files (such as images) will not be accessible to the recipient back on your computer. Similarly, if you copy the file to a web or document server or public folder, you need to find a way to provide access to the images from that location.

    If you would like an "all in one format," the most universal solution is PDF, generated either by Adobe Acrobat or one of the many other programs that allow you to print to PDF. Another option is Internet Explorer's "web archive" (.mht) format.

    If I have completely misunderstood, please explain the problem in more detail.

  5. #5
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: HTML display image

    This code Install Manual is the code for a hyperlink.

    But it says that "Install Manual.pdf" can be found by moving back up the document tree one level (.) then going to a directory called Resources. This will only work on another machine if that same relative path applies there as well.

    If there is just one copy of Install Manual.pdf in some location accessible to all, you need to replace ".ResourcesInstall Manual.pdf" with a full path that is true for all users.
    Regards
    John



  6. #6
    New Lounger
    Join Date
    Jul 2007
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: HTML display image

    i put all the files, into resources folder under a common share server.
    problem is , i found 2 pc can view it by clciking the link.
    my computer fail to view it.

  7. #7
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: HTML display image

    Can you find the "Full Path" to the folder on common share server?

    Your code needs to describe the location of the pdf file in a way that all computers on the network can use.

    e.g. "//OurServer/Resources/Install Manual.pdf"
    Regards
    John



  8. #8
    New Lounger
    Join Date
    Jul 2007
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: HTML display image

    yes, try full path also, cannot work.
    Sgrndapps01rndCommon ShareJyiYngHMI114testlogResources
    is that my computer problem?

  9. #9
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: HTML display image

    When you use the full path you still need the file name on the end.

    "Sgrndapps01rndCommon ShareJyiYngHMI114testlogResourcesInstall Manual.pdf"

    Can your computer browse to that folder and open the file by double clicking it?
    Regards
    John



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •