Page 1 of 1

Display web page in a label or text field

Posted: Fri Jul 26, 2013 11:27 am
by danwood83
Hi all,

I am new to this so I hope ive put this in the right place. I want to be able to load an app page which pulls content from a specific website page and loads it into a field (label). ive tried the following code get URL "web address" put it into field myField (this is done by clicking a button which still doesnt work) any ideas on how to code it?

Dan

Re: Display web page in a label or text field

Posted: Fri Jul 26, 2013 11:53 am
by shaosean
Give this a try.. It downloads a simple text file from my website and displays it in a label..

Re: Display web page in a label or text field

Posted: Fri Jul 26, 2013 11:56 am
by danwood83
what do i load .rev format in im using a pc

Re: Display web page in a label or text field

Posted: Fri Jul 26, 2013 12:18 pm
by Klaus
HI Dan,

".rev" is also a valid suffix for Livecode stacks!
If doubleclicking does not work, use the "Open..." dialog in menu "File" in Livecode 8-)


Best

Klaus

Re: Display web page in a label or text field

Posted: Fri Jul 26, 2013 2:18 pm
by danwood83
cheers for that i use laptop and pc where as software is only installed on my laptop so didnt realise what it was. thanks for that it works a treat, is there a way you can do it on load so as soon as the app page loads the information is displayed immediately

Re: Display web page in a label or text field

Posted: Fri Jul 26, 2013 3:49 pm
by shaosean
Copy the code from the button in to the card script and change the "on mouseUp" and "end mouseUp" to "on openCard" and "end openCard"