Page 1 of 1

read file .txt on the web solved

Posted: Wed Mar 21, 2012 3:23 pm
by jmburnod
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

Re: read file .txt on the web

Posted: Wed Mar 21, 2012 4:16 pm
by macnomad2
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

Re: read file .txt on the web solved

Posted: Wed Mar 21, 2012 4:31 pm
by jmburnod
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