realbasic-nug
[Top] [All Lists]

Re: Displaying online help in browser.

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Displaying online help in browser.
From: Jerry Fritschle <jerryfritschle at mac dot com>
Date: Wed, 30 Jun 2004 18:14:47 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
List-help: <mailto:realbasic-nug-request@lists.realsoftware.com?subject=help>
List-id: REALbasic NUG <realbasic-nug.lists.realsoftware.com>
List-post: <mailto:realbasic-nug@lists.realsoftware.com>
References: <BAY15-F40N8dtdCV5dQ00005fc6 at hotmail dot com>

On Jun 30, 2004, at 5:26 PM, Jan Bjerring wrote:

You'll need to insert a "localhost" in your url

If you change your menu handler to:

 dim f, c as folderItem
 dim s as string

 f=getfolderItem("")//the application folder
 c=f.child("index.html")
 s="file://localhost/"+c.absolutePath
 showURL s

It should work (at least it works on my machine).

Cheers
Jan



Well, that worked. Only thing, in my case, was that file initially opened in PageSpinner, since I had that set as my default application for html files (since local ones, in my case, primarily exist to be edited.) Once I did 'get info' and changed it to Safari, all was well. I guess that won't be an issue with most users--but if there's a way to compel the selection of a web browser, that would be nice.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>