Page 1 of 1

Launch URL from Web-based standalone

Posted: Sat Feb 06, 2010 7:14 pm
by Ron Zellner
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

Re: Launch URL from Web-based standalone

Posted: Wed Feb 10, 2010 6:38 pm
by oliverk
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

Re: Launch URL from Web-based standalone

Posted: Thu Feb 11, 2010 1:07 am
by shadowslash
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