How to display HTML files in local folder with revBrowser?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
alex298
Posts: 101
Joined: Mon May 01, 2006 1:17 pm

How to display HTML files in local folder with revBrowser?

Post by alex298 » Fri Jul 17, 2009 2:54 pm

Hello,

I am using Windows XP platform. This may be a simple question but I don't know how to do it.

I prepared some HTML webpages and saved in the same folder of the RR application, i.e.

myRR.rev
instruction.html
direction.html
help.html
etc....

I embed the revbrowser in a stack. However I have no idea how to display the HTML files with the revBrowser. I know how to display webpages on the Internet (e.g. http://www.anydomain.com/instruction.html) with revBrowser.

Please help.

Thanks and best regards
Alex
Nice to meet all of you.

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Fri Jul 17, 2009 7:57 pm

Use a "file://" URL with the full path on disk, instead of an "http://" url - assuming you have a file "C:\MyStuff\MyFile.htm" that you want to show, you'd script it like:

Code: Select all

revBrowserNavigate theBrowserID, "file://C:/MyStuff/MyFile.htm"
HTH,

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

alex298
Posts: 101
Joined: Mon May 01, 2006 1:17 pm

Post by alex298 » Sat Jul 18, 2009 3:51 pm

Dear Jan,

It works! Thanks for your help.

Best regards
Alex
Nice to meet all of you.

Post Reply