Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

lachoy (1663)

lachoy
  chris.winters@gmail.com
http://www.cwinters.com/

I am actually Chris Winters; I am actually living in Pittsburgh, Pennsylvania, USA; I am actually married and have three cats. (Guess what one of them is named?) I am the "OpenInteract" guy, which could be good or bad.

Journal of lachoy (1663)

Tuesday April 19, 2005
01:10 PM

Why isn't there a website-in-a-file?

[ #24279 ]

Maybe this is crazy talk, but it would be awfully nice for browsers to be able to resolve resource paths in archives like Java does in JAR files. For instance, I could create a presentation with something like S5 and zip up its directory structure into a single file -- 'mypresentation.zip'. That file would have all the HTML, CSS, JavaScript, images and whatever else I need to persuade someone that Triscuits are much better than Wheat Thins. (Or whatever.)

Then I could send 'mypresentation.zip' to my Wheat-Thin-eating buddy Clyde who can open his browser, choose, 'File | Open...' and pick my file. (Or right-click, choose 'Open with...' and pick the browser, whatever.) And he'd be able to see my presentation no matter how many graphics, CSS files, JavaScript files it referenced. And Clyde wouldn't even know or care about all that; he'd just have an overwhelming urge for baked, whole-wheat crackers.

So the browser would be responsible for:

  1. opening an archive file (format doesn't matter)
  2. opening the right file initially (name it 'index.html', 'home.html', 'Default.htm': whatever floats your boat),
  3. resolving references within the archive as directory paths -- so if the root level 'index.html' used 'ui/slides.css' the browser would know how to find it.

AFAIK it already knows how to do the first and third, and the second is just a matter of using what 99% of people already use today. Some judicious use of temp directories (which they're already doing, right?) and you're set.

This doesn't seem very difficult and I'm sure I'm not the first to think of it. Is there something like this now? (Besides PDF or PowerPoint...)

Posted from cwinters.com; read original

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • No need to convince me. Triscuits *are* better than Wheat Thins. :)
  • MSIE has some bizarre HTML Archive format. Does anything else support that? Is the format insane?
    --
    rjbs
    • As some people on my website noted, IE uses MHT files for this. And -- surprise! -- it's an RFC (2557 [ietf.org]) as well. From a quick glance it seems to be MIME + internal URL munging.

      And apparently MAF [mozdev.org] (Mozilla Archive Format) allows Moz/Firefox to read this format as well.

      Another surprise: there's no CPAN module for reading/writing such files...