The Artima Developer Community
Sponsored Link

Java Buzz Forum
Why isn't there a website-in-a-file?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Chris Winters

Posts: 931
Nickname: cwinters
Registered: Jul, 2003

Daytime: Java hacker; nighttime: Perl hacker; sleeptime: some of both.
Why isn't there a website-in-a-file? Posted: Apr 19, 2005 11:56 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Chris Winters.
Original Post: Why isn't there a website-in-a-file?
Feed Title: cwinters.com
Feed URL: http://www.cwinters.com/search/registrar.php?domain=jroller.com®istrar=sedopark
Feed Description: Chris Winters on Java, programming and technology, usually in that order.
Latest Java Buzz Posts
Latest Java Buzz Posts by Chris Winters
Latest Posts From cwinters.com

Advertisement

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...)

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

Topic: Python: A recipe for cryptic code? Previous Topic   Next Topic Topic: Value types in Java: Striving for the stack

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use