Clickable URL's
-
- Posts: 186
- Joined: Sun Nov 14, 2010 5:57 am
-
- Posts: 186
- Joined: Sun Nov 14, 2010 5:57 am
Re: Clickable URL's
Btw I'm lazy, you can view the discussion and final code here.
-
- Posts: 48
- Joined: Sun Feb 06, 2011 2:00 pm
Re: Clickable URL's
I am attempting to implement this code and while the links are, indeed, made clickable, I receive the following error upon clicking the link:
Lua error:[string "openURL("http://www.test.com")"]:1: attempt to
call global 'openURL' (a nil value)
I am running: Mudlet 2.0-dev built: January 19, 2011
Any input here is greatly appreciated.
Lua error:[string "openURL("http://www.test.com")"]:1: attempt to
call global 'openURL' (a nil value)
I am running: Mudlet 2.0-dev built: January 19, 2011
Any input here is greatly appreciated.
Re: Clickable URL's
Try changing it to openUrl
Re: Clickable URL's
Is there a reason openUrl() doesn't work proper on links without the prefix? Like, it won't work with
period, but it works on
There is no error message for why it doesn't work, either. It simply doesn't open the page.
Re: Clickable URL's
Both work perfectly for me.Phoenix wrote:Is there a reason openUrl() doesn't work proper on links without the prefix? Like, it won't work withperiod, but it works onThere is no error message for why it doesn't work, either. It simply doesn't open the page.
Re: Clickable URL's
That behavior is OS-dependant I guess. So for safety, use http://, because the http:// protocol is how you want it to be opened with.
Re: Clickable URL's
I've improved this package so that it works for multiple urls on one line. Also if you were having problems with the colors of your links with the last package you probably won't with this one.
- Attachments
-
- clickableURLs.xml
- (1.36 KiB) Downloaded 1417 times