Dan Jacobson <[EMAIL PROTECTED]> writes:
> My http://jidanni.org/comp/wwwoffle/wwwoffle-chunks ' concept is
> "Andrew's got it all wrong :-) There's no way we are going to obediently
> read all the stuff in the lasttime index before the thirst for info
> drives us back online. Prevtime indexes are a help, but better yet,
> each time when we go offline, let's chop up lasttime into oh, screen
> sized separate parts that stick around until you are finished with
> them."
What I use is the lasttime index sorted by "date changed" and the
option 'cycle-indexes-daily = yes' set so that the lasttime index
shows all of today's pages. This way I just need to work from the
bottom of the index to the top and the new pages won't get mixed in
with the older ones.
> OK, that's nice. One "final" thing I would like to do is put a button
> on the bottom of one of my chunks, that would dispose of that chunk
> and remake the chunk index. How does one do that? Javascript? Or
> should I stick this into the wwwoffle tree and use a "wwwoffle remove"
> command?
You can't use Javascript since all Javascript execution is run in an
environment that does not allow access to anything outside of the
browser. This means that you cannot use Javascript to make any change
to files that you would need to recreate the indexes or delete the
read ones.
What you could do is write a CGI that is run by WWWOFFLE and creates
the chunk files in the /var/spool/wwwoffle/local directory.
--
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop [EMAIL PROTECTED]
http://www.gedanken.demon.co.uk/
WWWOFFLE users page:
http://www.gedanken.demon.co.uk/wwwoffle/version-2.7/user.html