Page 1 of 1

hyperlinks in standalone do not work

Posted: Fri Aug 15, 2014 5:43 pm
by keram
Hello,

I created few hyperlinks in the text field to open the web pages in a default browser. I did it in this way:

1. Formatted the text as Link

2. used this code to set the link:
set the linkText of line 1 of fld "mylinks" to "http://mywebpage.html"

3. included this code in the card where the field with the link is present:

Code: Select all

on linkClicked myLink
   if myLink contains "http://" then revGoUrl myLink
end linkClicked
When I test it in IDE and in Windows standalone it works OK. But in Android standalone it does not work at all.

What do I have to correct to get it working on Android?

Thanks.

Re: hyperlinks in standalone do not work

Posted: Fri Aug 15, 2014 6:00 pm
by FourthWorld
The Dictionary entry for the revLaunchUrl command is noted as available only for Mac, Windows, and Linux, and that it's been deprecated in favor of the newer "launch URL" command, which also works on iOS and Android.

Re: hyperlinks in standalone do not work

Posted: Sat Aug 16, 2014 1:26 am
by keram
Thanks Richard,

I picked that piece of code from the official LC lesson here: http://lessons.runrev.com/m/4071/l/7406 ... -in-fields
So that became a lesson for me to not always trust what is posted on these lessons and double check with the Dictionary, even though the Dictionary is not always up to date either is what I read on this forum... Well, with time things will be corrected I guess.

keram