Help with getting url from browser widget

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
karimariesk
Posts: 10
Joined: Thu Jul 07, 2016 6:44 am

Help with getting url from browser widget

Post by karimariesk » Tue Aug 09, 2016 10:30 pm

Hello! i've been searching but cant find a way to get the current url of the browser widget. i found how to set it, and tried to work from there... but still cant find a way that works. all i want to do is get the current url from the browser and put it in a variable. Any ideas?
Thanks!

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Help with getting url from browser widget

Post by Klaus » Tue Aug 09, 2016 11:00 pm

Hi karimariesk,

(almost) everything you can SET, you can also GET again! :D
So this works for me, at least on the desktop!):

Code: Select all

put the URL of widget "myBrowser" into tUrl
Best

Klaus

karimariesk
Posts: 10
Joined: Thu Jul 07, 2016 6:44 am

Re: Help with getting url from browser widget

Post by karimariesk » Wed Aug 10, 2016 5:38 am

you are a life saver! i tried that, BUT without the "the" infront of the url. i tried using set, (set tUrl to url of widget "browser") but it just gave me an error.
thank you Klaus!!

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Help with getting url from browser widget

Post by Klaus » Wed Aug 10, 2016 10:38 am

Hi karimariesk,
karimariesk wrote: i tried that, BUT without the "the" infront of the url. i tried using set, (set tUrl to url of widget "browser") but it just gave me an error.
well, LC is not C or VB or whatever! I only meant that you can retrieve (almost) every value that you have set before in LC. :D


Best

Klaus

Post Reply