Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Displaying TIF files

Displaying TIF files

Scheduled Pinned Locked Moved XML / XSL
questionhtmldesignxmlhelp
3 Posts 2 Posters 11 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    David Chamberlain
    wrote on last edited by
    #1

    I have an application that collects a bunch of data and stores relevant information in an XML file. A subset of the data is to be written to a CD-ROM, and a set of HTML pages are created with content customized from the contents of the XML file, to provide an easy user interface to the contents of the CD. The problem is that some of the data that is collected is stored in TIF files, with the filenames stored in the XML file. Using the HTML [a] tag with "href=img.jpg" makes a nice link so the jpg image is displayed, but this doesn't seem to work with TIF files. Can't Internet Explorer display tif files from within HTML? From my desktop, when I double click on a tif file, I get this "Imaging for Windows" application that displays the file. Well, that's alright, but how can I get that same thing to happen from my HTML link? How can I start an application with a specific file as an argument from within HTML? Only because these HTML files are being generated from the contents of the XML file did I think it appropriate to try this forum. Thanks, too, for all those who helped me get the XML file "formatted" so it could be seen in an editor. Dave "You can say that again." -- Dept. of Redundancy Dept.

    M 1 Reply Last reply
    0
    • D David Chamberlain

      I have an application that collects a bunch of data and stores relevant information in an XML file. A subset of the data is to be written to a CD-ROM, and a set of HTML pages are created with content customized from the contents of the XML file, to provide an easy user interface to the contents of the CD. The problem is that some of the data that is collected is stored in TIF files, with the filenames stored in the XML file. Using the HTML [a] tag with "href=img.jpg" makes a nice link so the jpg image is displayed, but this doesn't seem to work with TIF files. Can't Internet Explorer display tif files from within HTML? From my desktop, when I double click on a tif file, I get this "Imaging for Windows" application that displays the file. Well, that's alright, but how can I get that same thing to happen from my HTML link? How can I start an application with a specific file as an argument from within HTML? Only because these HTML files are being generated from the contents of the XML file did I think it appropriate to try this forum. Thanks, too, for all those who helped me get the XML file "formatted" so it could be seen in an editor. Dave "You can say that again." -- Dept. of Redundancy Dept.

      M Offline
      M Offline
      Michael A Barnhart
      wrote on last edited by
      #2

      Dave, IE should recoginise the image/tiff type Ref: http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/moniker/overview/appendix\_a.asp I have QuickTime loaded on my system and all of the following work fine. some comments may also be found at; http://www.alternatiff.com/howtoembed.html I know nothing of there viewer. Which could be your issue. IE knows the filetype but does not have a viewer for it. To be conscious that you are ignorant of the facts is a great step towards Knowledge. Benjamin Disraeli

      D 1 Reply Last reply
      0
      • M Michael A Barnhart

        Dave, IE should recoginise the image/tiff type Ref: http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/moniker/overview/appendix\_a.asp I have QuickTime loaded on my system and all of the following work fine. some comments may also be found at; http://www.alternatiff.com/howtoembed.html I know nothing of there viewer. Which could be your issue. IE knows the filetype but does not have a viewer for it. To be conscious that you are ignorant of the facts is a great step towards Knowledge. Benjamin Disraeli

        D Offline
        D Offline
        David Chamberlain
        wrote on last edited by
        #3

        Michael, Thanks for your comments. I was able to finally figure out what was going on after much research, reading, testing, and frustration. Here's a summary, which may be of help to others. Web browsers (IE and Netscape Navigator, and apparently on both PCs and Macs) are not able to view TIFF files as a native format (like for BMP, JPG, and GIF). They all require help, either from a TIFF plugin for IE, or "helper applications" for NN. The Alternatiff product is a free plugin so that IE can display TIFF files. The other option, though, is that IE (and I'm assuming NN also) uses the file associations to initiate the proper program to display files that IE does not recognize, such as .xls Excel spreadsheets or .doc Word files. With html links to those files, the corresponding app loads the linked file and displays it in the browser. This is also seen frequently with .pdf files when Adobe Acrobat starts up. This should have worked on my machine for TIFF files, as when I double click on a file from the desktop, the Imaging For Windows application (either from Wang or Kodak) started up with the file displayed. But, it was not working for the same file in an html href link. The problem turned out to be two entries in the registry, underneath the Software/Internet Explorer/Plugins path ... one entry for tif and one for tiff. Both were there, but had no values. What this was causing, therefore, was IE to believe that there was a plugin installed for tif/tiff files, and that it should use that plugin to display the file in the browser window. Since the plugin entries were empty, IE didn't have an application to use, so it displayed an empty image. When I deleted those two entries in the registry, IE could find no plugin and defaulted to the file associations, as expected. Dave "You can say that again." -- Dept. of Redundancy Dept.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups