On Sun, 24 Dec 2000, Bryan Derksen wrote:
> On Sun, 24 Dec 2000, Travis Bemann wrote:
> > This is suboptimal to a subspace because files can be added later to a
> > subspace, while all the files have to already be specified for this
> > (but they don't have to *exist* yet).
>
> I proposed something quite similar to this (nearly identical, in fact) a
> few months back. Its purpose was to improve the efficiency and
> organization of web pages on freenet. Instead of using multiple SVKs on a
> web page containing updatable redirects to CHKs, a web page would use a
> single "map" file (perhaps listed in a META tag or somesuch) to associate
> CKHs (and other keys) with keywords for all of the links, image tags, etc.
> contained within. This would mean that for web pages with many updateable
> links you'd only need to request approximately half of the keys you would
> otherwise (since all "redirects" are handled by referencing one map file)
> and to update the entire page's links you'd only need to update the single
> map file (linked to by an SVK).
I fell into the same trap, linking map files to individual pages by
specifying their key in the metadata. It fails terribly because the
browser won't understand the directory structure. For example, you might
surf to "freenet:CHK@blahblah", a html page, which links to a map file in
its metadata. But that key might not really be in the top directory ("/"),
but it could be listed in the mapfile as "/chapter_01/index.html". This
introduces a whole slew of evil complications, because the browser lies
about the filename it's requesting. There's no way out, you're stuck
trying to keep track of your current state (what directory you're in) with
cookies, and even then it falls apart. A link off /chapter_01/index.html
to "../cat.jpg" would do what when the browser thinks "/chapter_01/"
equals "/"? My brain still hurts.
By explicitly specifying the map file and absolute filename in the URI, we
sidestep these difficulties. Practically speaking, this means that the
user will have to surf to "freenet:KSK@mysite:/index.html" instead of
"freenet:KSK@my-sites-index-page-with-the-map-specified-in-metadata".
--
Mark Roberts
[EMAIL PROTECTED]
_______________________________________________
Freenet-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/freenet-dev