realbasic-nug
[Top] [All Lists]

RE: Displaying online help in browser.

To: realbasic-nug at lists dot realsoftware dot com
Subject: RE: Displaying online help in browser.
From: "Jan Bjerring" <janbjerring at hotmail dot com>
Date: Thu, 01 Jul 2004 00:26:24 +0200
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>
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


From: Jerry Fritschle <jerryfritschle at mac dot com>
Reply-To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
To: RealBasic Discussion <realbasic-nug at lists dot realsoftware dot com>
Subject: Displaying online help in browser.
Date: Wed, 30 Jun 2004 17:05:55 -0500

I have an html instruction manual (a frames page, with several 'chapter' pages and a folder of images), included in my application folder. I want the user to be able to call this from the 'help' menu of my application, and have it display in his or her browser. This is proving harder than I thought.

Right now my menu handler looks like this:

  dim f, c as folderItem
  dim s as string

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

This code is ignored. If I substitute "http:" for "file:", the browser comes to the front, but I get a 'server not found' error, with the 'server' being the parent volume. This is not surprising.

Is there any way to use ShowURL to call a local html file? As I've been researching this before posting, I've encountered some other methods of creating online help, but that (at least for now) is a little more involved than what I had in mind.

Since my application happens to be an FTP client, and the user could therefore be expected to be online, an easy workaround would be to put the html stuff on my own server--but that would be a 'kludge deluxe.'

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

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


_______________________________________________
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>