Launch URL from Web-based standalone

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Ron Zellner
Posts: 106
Joined: Wed May 31, 2006 9:56 pm
Contact:

Launch URL from Web-based standalone

Post by Ron Zellner » Sat Feb 06, 2010 7:14 pm

Hi,

I have a function for launching a web page with a specified URL that works fine in Revolution, but does not work when saved as a web-based standalone file.
The basic code is:

Code: Select all

  launch URL "http://server/folder/file...."
Nothing happens when it gets to this line in the standalone version.
Any suggestions?

Ron

oliverk
Site Admin
Site Admin
Posts: 53
Joined: Mon Feb 27, 2006 2:16 pm

Re: Launch URL from Web-based standalone

Post by oliverk » Wed Feb 10, 2010 6:38 pm

Hi Ron,

I've just had a quick test of this, and it does seem to work ok.

However one thing I noticed is that the "Process" security category is required in order to launch urls. If you choose "Use These Settings" in the web pane of the standalone settings for your stack, and ensure that "Process" is checked, it should work.

Hope this helps.

Regards
Oliver
Oliver Kenyon
Software Developer
Runtime Revolution

shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Contact:

Re: Launch URL from Web-based standalone

Post by shadowslash » Thu Feb 11, 2010 1:07 am

Also, if you want the revlet to load the new URL onto the same window as it is, try out this little code that I cooked up awhile ago.

Code: Select all

on mouseUp
   do ("window.location=" & quote & "http://www.mywebsite.com/" & quote & ";") in browser
end mouseUp
I myself have been using "launch URL" until 5 minutes ago where I managed to make this code work. This doesn't require you to put "Process" among the Security Settings of your revlet. You don't need any permission for this. The only thing that's going to be a stop to this method is if the user has disabled his / her javascript on his / her browser which is rare nowadays.

Hope my post helped and, have fun using rev! Image
Parañaque, Philippines
Image
Image

Post Reply