Jacques Gelinas wrote:
>
> On Fri, 18 Dec 1998, Dale Lovelace wrote:
>
> > Is there anyway we could do frames for the page? I am thinking something
> > along these lines:
>
> Given that html pages are generated by an algorythm, it is not that
> expensive to have several flavors. Supporting frame is one option. The
> frame layout with treemenu on the side is certainly a cool idea. Anyone
> knows how we can have a tree widget in HTML. Is it possible to do that
> with javascript ?
Yes, you may try this one, which I made as an example some months ago
(using a javascript from gamelan):
http://www.terminator.net/linuxconf/demo/localhost.html
For info on how this was done look at
http://www.terminator.net/linuxconf/#JS
Currently, this is a static frameset, and the menu is generated manually
with perl, but it should be easy to deliver the frameset and
javascriptcode directly from linuxconf, and generate the javascript
menutree directly from the linuxconf treemenu module.
The javascript "treemenu" generator is open source I belive, so it could
be possible to exctract the needed code: one function making the
treeroot, one function making a submenu, and one function making a
"leave". Then you could generate the whole (or a subset) tree directly
in linuxconf.
I also found another treemenu generator, working the same way, but seems
a bit faster, it also has support for icons so we could convert the
linuxconf "service" icons to gifs and include them in the treemenu, it
would then simulate a well-known control-panel perfectly (it would also
be a much more powerful controlpanel I assume ;-):
http://home.sol.no/~warnckew/tree_menu/
> But pulling java to enhance an html solution seems to be heavy. So I
> wonder if by doing some javascript + a little server side support, we
> could pull a very inexpensive html treemenu.
I agree, java is most useful as a standalone GUI application, the html
version should be as light as possible.
Another point is that the current html layout should always be
available, for browsers not supporting frames/javascript. The current
html is also fast, the javascript version will be slow on a slow
machine.
So I wonder, is it possible to create a new "htmlplus" module (or
something), stuff all the "fancy" html generating code there, and
overide the "native" html functions when prefered by the user? It seems
(from the dialog code) that the html dialog functions can be overriden
by functions in other modules, but will this only work in the current
module or will it also override in all other modules/core?
---
You are currently subscribed to linuxconf as: [[email protected]]
To unsubscribe, forward this message to [EMAIL PROTECTED]