Monday, November 08, 2010 at 12:06 AM.
system.verbs.builtins.webBrowser.tours.handleURL
on handleURL (url, mimetype, windowid, referrer) { <<called when the user goes to another URL <<called from system.verbs.traps.['WWW?'].URLE if string.lower (url) endswith ".gif" { <<filter out gif references return (true)}; with webBrowser.tours { local (adroutline = openMenu ()); local (title = webBrowser.getFrontWindowTitle ()); local (scriptstring = "webBrowser.tours.visitSite (\"" + url + "\")"); menu.addMenuCommand (adroutline, tourname, title, scriptstring); return (true)}}; bundle { <<test code handleURL ("http://www.yahoo.com/Economy/Labor/", "internal/parser", "http://www.yahoo.com/Economy/", "538976321")}
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.