urlWakeUp - how to parse the URL

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
MadManSoft
Posts: 36
Joined: Fri Apr 12, 2013 9:15 pm

urlWakeUp - how to parse the URL

Post by MadManSoft » Wed Feb 05, 2014 9:06 pm

Hi All,

Now that I've gotten the URL that called my app, is the another function that will help to parse it, or is that all up to me and my code?

example URL:

myURL://some/path/here?foo=1&bar=2

Is there a function in LC that will get me the parameters (foo and bar) and their values (1 and 2) or is that something I have to parse for?

Thanks,

Steve

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: urlWakeUp - how to parse the URL

Post by LCNeil » Tue Feb 25, 2014 10:42 am

Hi Steven,

You will be able to use the urlWakeup message which is sent to your application when it is launched by a URL

An example of this is

on urlWakeUp pURL
answer pURl
end urlWakeup

pURL will be the url that was used to launch your app.

You should then be able to parse this as required.

We also have a great lesson on this here-

http://lessons.runrev.com/s/lessons/m/4 ... rl-schemes

Kind Regards,


Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
-

Post Reply