read file .txt on the web solved

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

read file .txt on the web solved

Post by jmburnod » Wed Mar 21, 2012 3:23 pm

Hi All,

I try to read a file .txt from a server

Code: Select all

on mouseUp
   put URL "http://www.alternatic.ch/jmb/test200312.txt" into tData
   set the text of fld "myFld" to tData
end mouseUp
work on OSX but not on IOS

What i forget ?

Best regards

Jean-Marc
Last edited by jmburnod on Wed Mar 21, 2012 5:08 pm, edited 1 time in total.
https://alternatic.ch

macnomad2
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 63
Joined: Sat Oct 28, 2006 10:04 pm

Re: read file .txt on the web

Post by macnomad2 » Wed Mar 21, 2012 4:16 pm

Works for me (in France ;). Do you use old versions of LC or Xcode ?
Try that
on mouseUp
put "http://www.alternatic.ch/jmb/test200312.txt" into tNomData
put URL tNomData into tData
set the text of fld "myFld" to tData
end mouseUp

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: read file .txt on the web solved

Post by jmburnod » Wed Mar 21, 2012 4:31 pm

Bonjour macnomad,

Thank for test and reply
I don't know why but the two scripts works fine now.

Avec mes meilleurs messages

Jean-Marc
https://alternatic.ch

Post Reply