Display web page in a label or text field

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
danwood83
Posts: 9
Joined: Thu Jul 25, 2013 3:00 pm

Display web page in a label or text field

Post 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
shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Display web page in a label or text field

Post by shaosean »

Give this a try.. It downloads a simple text file from my website and displays it in a label..
Attachments
ForDan.rev.zip
(935 Bytes) Downloaded 493 times
danwood83
Posts: 9
Joined: Thu Jul 25, 2013 3:00 pm

Re: Display web page in a label or text field

Post by danwood83 »

what do i load .rev format in im using a pc
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Display web page in a label or text field

Post 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
danwood83
Posts: 9
Joined: Thu Jul 25, 2013 3:00 pm

Re: Display web page in a label or text field

Post 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
shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Display web page in a label or text field

Post 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"
Post Reply