in reply to Binding hyperlinks to text using Perl/Tk

There might be some confusion on the two sorts of hyperlinks. A hyperlink in Tk has nothing do do with hyperlinks in a browser. The only thing they share in common is that something happens when you click on a piece of text (or picture).

tagBind knows nothing of the web; it only allows you to bind some action with clicking on the text. That action is up to you. Typically, tagBind is used to link different parts of a long text, as in a table of contents. But you could certainly use it to open a page on a browser.

There are a couple of ways to do that. One is to simply invoke the browser with a system statement. Another is to communicate with the browser using some IPC like Applescript on the Mac of OLE on Windows.

-Mark

Replies are listed 'Best First'.
Re: Re: Binding hyperlinks to text using Perl/Tk
by Popcorn Dave (Abbot) on Mar 11, 2004 at 06:31 UTC
    Thanks for that! That was sort of my understanding, so I think, if I understand bind correctly, I can just use bind, not necessary tagBind and I should be okay.

    So I guess my question boils down to finding the default browser on a system. Any ideas on that? :)

    There is no emoticon for what I'm feeling now.

      On windows start http://url/ will launch the default web browser.