Re: Netscape access libraries

Achim Bohnet (ach@rosat.mpe-garching.mpg.de)
Thu, 28 Mar 1996 23:41:58 +0100


>>>"Randy J. Ray" said:
 [...]
 > as a URL to be opened by a running netscape process. Nothing fancy, but it
 > beats cutting the URL from a mail message, de-iconifying netscape, moving to
 > the URL window, clearing it, etc. And no, I am not a fan of either the mail
 > or the news reader built in to netscape. Hunting squirrel with a grenade
 > launcher, that.

It's one of those little fancy things everybody(?) would like to have and
never finds the time to do it.

 > Some of the issues I am looking at:
 > 
 > * Namespace. Obviously, if there is more to this collection than just the
 >   bookmarks stuff, I need namespace breakdown to compartementalize things.
 >   Everything I have is just under Netscape:: for now.

I would suggest to have a application independend interface like

	WWW::Browser   (or WWW::Browser::Base.pm)
                    ::Netscape    your reference implementation
                    ::Mosaic      for the next java security hole :-)
                    ::tkweb
		    ::libwww      without X11

 > * What else to put in. Is a complete API to the netscape remote interface
 >   worth using? What about adapting the history reading into a set of routine
     s?

I never missed more than a small tools or library that allows (with/out X11)
to
        - startup brower if not running
	- load/display
	- load/save
        - load/print
        - deiconify/poptofront

Due to the great libwww-perl I can do alot without a browser but sometimes...

 > * Method of bookmark access. Currently, you get a hash ref that has as an
 >   element an array ref. The contents of the array area a sequence of items
 >   that can be any of the above-mentioned types. A read routine returns a
 >   hash ref, and a write routine takes the ref as input. A more OO approach
 >   would allow more transparent access to the data and the I/O methods, but i
     s
 >   it overkill?

If the class(es) will include a general hierachical tree class it's
definetly worth the effort :-)

 > I started this as just the bookmarks stuff, so that my remote-control netsca
     pe
 > widget-thing could bring up the netscape-ish bookmarks menu pull-down, and
 > not only send you to a URL cut from mail or news, but also allow remote acce
     ss
Are these widget-thing's something like subclassed:
Tk::WWWMenu/Item/Button/tag?

 > into the whole of your bookmarks file (never mind issues of the netscape
 > process changing the bookmarks. A simple occassion test of the file's modtim
     e
 > gets around that). Now, I see more potential, but have no idea if it is of u
     se
 > or interest to anyone else.

Sounds very interesting.

Achim
 > 
 > Randy