How to use AltBrowser to open local webpages?

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 use AltBrowser to open local webpages?

Post by alex298 » Fri Jun 01, 2007 9:35 am

Hello,

I wish to use AltBrowser to open local webpages with relative path (e.g. index.html, data/test.html) to RR application. I browses over the sample stacks and documents, it seems that they only mentioned how to open webpages on the Internet.

How can I do that?

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

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Post by BvG » Fri Jun 01, 2007 2:55 pm

You can read the html into a variable, and then use revBrowserSet with the htmltext property.

Alternatively, you can use the "file://" url, I think both Safari and IE understand that.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

Post Reply