> On Thu, Jun 17, 2004 at 08:13:08AM -0500, Ken Williams wrote:
> >
> > Yeah, HTML::Tooltip and CGI::Tooltip seem like the obvious names. I
> > don't think you need to put "Javascript" into the name, that's too much
> > information.
>
> Actually, I like JavaScript::Tooltip. If the the code is not
> HTML-specific, it may well be useful in other places JavaScript is used.
> It's my understanding that JavaScript also is used with SVG, PDF and
> Scribus documents.
At this point the module is HTML specific. Our proposed usage of this
module is:
use CGI::Tooltip;
my $tt = CGI::Tooltip->new(
javascript_dir => '/javascript/',
options => \%default_options,
);
# In HTML output ...
my $tip1 = $tt->tooltip("Tip", \%options);
print qq(<a href="/example/" $tip1>Example</a>);
# Output the script tag that refers to the Javascript tooltip
# library. It's essential that this is printed after all other
# tooltip related output.
print $tt->at_end;
# Output end html here
The javascript library that we're using only works in browsers as far as we
know, and as far as our development goes we think of this kind of
functionality as a natural extension of what the CGI module does for us.
It seems that there is some overlap between the Javascript, HTML and CGI
namespaces. The suggestions we have so far are:
CGI::Tooltip
HTML::Tooltip
Javascript::Tooltip::HTML
There is even a HTML::Widget and a HTML::Widgets namespace which might apply
also (although which would you use?).
We'd value any feedback.
Regards
Becky