display webpage or link to a webpage using a revlet

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
reelstuff
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 254
Joined: Mon Apr 16, 2007 12:06 am
Contact:

display webpage or link to a webpage using a revlet

Post by reelstuff » Thu Dec 17, 2009 9:58 pm

Is there a way to display a webpage using a revlet?

Or is there some other method of displaying a browser window,

I have tried,

Code: Select all

revGoURL  "http://www.somewebsite.com
This would be something like having a href link in a standard webpage.

I noticed I can use load URL but this does not give me the ability to display the webpage only the raw html

any thoughts or suggestions?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: display webpage or link to a webpage using a revlet

Post by Mark » Fri Dec 18, 2009 12:16 am

Reelstuff,

Activate the Process security option on the Web pane of the standalone settings and it will work.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

reelstuff
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 254
Joined: Mon Apr 16, 2007 12:06 am
Contact:

Re: display webpage or link to a webpage using a revlet

Post by reelstuff » Fri Dec 18, 2009 12:38 am

Excellent, yes, that works perfectly, wow, thanks for that.

dickey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 118
Joined: Wed Apr 08, 2009 11:54 pm

Re: display webpage or link to a webpage using a revlet

Post by dickey » Wed Dec 23, 2009 2:30 pm

Hello reelstuff,

I was following your post and wanted to ask/note several things on the same topic.

1 [note]. I believe revGoURL is depreciated for: launch url urlToLaunch (example: launch url "http://www.runrev.com"),
2 [ask]. There seems no way to control the target (_blank, _parent, _self, _top etc) of the url opened with either launch url or revGoURL, as it is left to the browser/system defaults. In Internet Explorer on Windows the default behaviour is to open a new window. How then might you set a target other than the default, for example target="_self" ? Have you wanted to set the target? Have you found a way?
3 [observation] It would be better (ideal) if the revBrowser library was available within the RevWeb Plug-in/Revlets, given the depth of it's functionality.

Let me know your thoughts.

Merry Christmas, Andrew

reelstuff
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 254
Joined: Mon Apr 16, 2007 12:06 am
Contact:

Re: display webpage or link to a webpage using a revlet

Post by reelstuff » Wed Dec 23, 2009 3:44 pm

dickey wrote:Hello reelstuff,

I was following your post and wanted to ask/note several things on the same topic.

1 [note]. I believe revGoURL is depreciated for: launch url urlToLaunch (example: launch url "http://www.runrev.com"),
2 [ask]. There seems no way to control the target (_blank, _parent, _self, _top etc) of the url opened with either launch url or revGoURL, as it is left to the browser/system defaults. In Internet Explorer on Windows the default behaviour is to open a new window. How then might you set a target other than the default, for example target="_self" ? Have you wanted to set the target? Have you found a way?
3 [observation] It would be better (ideal) if the revBrowser library was available within the RevWeb Plug-in/Revlets, given the depth of it's functionality.

Let me know your thoughts.

Merry Christmas, Andrew
1. I will have to check on depreciation, I have not heard it, but then again there are apparently quite a lot of changes in the works soon...
2. I think setting the target would be a good feature.
3. having the revBrowser library available in the Archtichure would be a fantastic addition.

Post Reply