Re: libUrlDownloadToFile: desktop ok, Android no

2018-01-14 Thread J. Landman Gay via use-livecode
On 1/11/18 10:37 PM, Nicolas Cueto via use-livecode wrote: Below is the script used to download a text file. Which works on the Windows desktop. But on my Nexus 5, "error" is returned by the script commands "log" and "logflushbuffer". The most likely reason is that the field needs a complete r

libUrlDownloadToFile: desktop ok, Android no

2018-01-11 Thread Nicolas Cueto via use-livecode
eUp put empty into the last field libUrlDownloadToFile binURL(), specialFolderPath("documents") \ & slash & "dictionary.txt", "urlDownloadStatus" log "started download of" && binURL() end mouseUp on urlDownloadStatus pUrl

Re: libURLDownLoadToFile

2012-08-31 Thread Dr. Hawkins
On Thursday, August 30, 2012, Richmond wrote: > On 08/30/2012 07:15 PM, Richard Gaskin wrote: >> >> It was the faeries. :) >> > > How very 19th century. My computer, being 21st century, contains 'fairies' > . . . LOL. > They're two groups, very distantly related. The seemingly cute and kind fair

Re: libURLDownLoadToFile

2012-08-30 Thread Richmond
On 08/30/2012 07:45 PM, Bob Sneidar wrote: JUST DON'T FEED THEM AFTER DARK! Or let them near water! Oh my Gosh; we share a common history in terms of daft films we have watched. On Aug 30, 2012, at 9:15 AM, Richard Gaskin wrote: Thanks Alex and Richard. This is now working just fine

Re: libURLDownLoadToFile

2012-08-30 Thread Richmond
On 08/30/2012 07:15 PM, Richard Gaskin wrote: Peter Haworth wrote: Thanks Alex and Richard. This is now working just fine. I made so many changes, I really lost track of what I might have been doing wrong before. It was the faeries. :) How very 19th century. My computer, being 21st cent

Re: libURLDownLoadToFile

2012-08-30 Thread Bob Sneidar
They would want to get paid in teeth. I don't think that is a very good idea. On Aug 30, 2012, at 9:34 AM, Peter Haworth wrote: > They could make a fortune if they hired themselves out! > Pete > lcSQL Software > > > > On Thu, Aug 30, 2012 at 9:15 AM, Richard Gaskin > wr

Re: libURLDownLoadToFile

2012-08-30 Thread Bob Sneidar
JUST DON'T FEED THEM AFTER DARK! On Aug 30, 2012, at 9:15 AM, Richard Gaskin wrote: >> Thanks Alex and Richard. >> >> This is now working just fine. I made so many changes, I really lost track >> of what I might have been doing wrong before. > > It was the faeries. :) > > I have a friend

Re: libURLDownLoadToFile

2012-08-30 Thread Peter Haworth
They could make a fortune if they hired themselves out! Pete lcSQL Software On Thu, Aug 30, 2012 at 9:15 AM, Richard Gaskin wrote: > Peter Haworth wrote: > > Thanks Alex and Richard. >> >> This is now working just fine. I made so many changes, I really lost >> track >>

Re: libURLDownLoadToFile

2012-08-30 Thread Richard Gaskin
Peter Haworth wrote: Thanks Alex and Richard. This is now working just fine. I made so many changes, I really lost track of what I might have been doing wrong before. It was the faeries. :) I have a friend who, whenever software just starts working for no discernible reason, is quite comfo

Re: libURLDownLoadToFile

2012-08-29 Thread Peter Haworth
> > Then uncross your fingers :-) > > -- Alex. > > --> all handlers >> >> on mouseUp >> local tURL, tFile >> >> put "starting" into msg >> libUrlSetStatusCallback "update" , the long id of me >> put "junk.t

Re: libURLDownLoadToFile

2012-08-29 Thread Alex Tweedly
all handlers on mouseUp local tURL, tFile put "starting" into msg libUrlSetStatusCallback "update" , the long id of me put "junk.txt" into tFile put "http://tweedly.org"; into tURL libUrlDownloadToFile tURL , tFile, "done"

Re: libURLDownLoadToFile

2012-08-29 Thread Richard Gaskin
Peter Haworth wrote: Still no joy with this. I have switched over to using get URL and writing it to a local disk file. That works with exactly the same URL/local filename but I don;t get the opportunity to update a progress bar. I don't know why libUrlDownToFile isn't working for you, but fo

Re: libURLDownLoadToFile

2012-08-29 Thread Peter Haworth
so is fine. I've set the >> callback >> > message with libURLSetStatusCallback and in there I have logic that >> updates >> > a progress bar. >> > >> > When the libURLDownloadToFile is executed, nothing ever reachs the >> callback >

Re: libURLDownLoadToFile

2012-08-28 Thread Peter Haworth
th this command. > > > > The url of the file to download looks fine (it's urlEncoded) and the file > > exists on the server. Local filename also is fine. I've set the > callback > > message with libURLSetStatusCallback and in there I have logic that > upda

Re: libURLDownLoadToFile

2012-08-28 Thread Andre Garzia
download looks fine (it's urlEncoded) and the file > exists on the server. Local filename also is fine. I've set the callback > message with libURLSetStatusCallback and in there I have logic that updates > a progress bar. > > When the libURLDownloadToFile is executed

libURLDownLoadToFile

2012-08-28 Thread Peter Haworth
When the libURLDownloadToFile is executed, nothing ever reachs the callback message, progreess bar is not updated and the file is not downloaded. No error message anywhere that I can see. Any obvious things I should be looking for? Pete lcSQL Software <http://

Re: Android & URLEncode & libUrlDownloadToFile

2012-08-01 Thread Alex Tweedly
[sorry if this finishes up being duplicated] Here's a tiny LC file to download a JPEG (fixed file name to make it as simple as possible) which should get you further ... put URL("binfile:./family/threeofakind/2006_0314Image0021.JPG") into tData put header "Content-Type: image/jpeg" put he

Re: Android & URLEncode & libUrlDownloadToFile

2012-07-30 Thread Nicolas Cueto
Thanks, Alex. A question... > and write a simple LC script to check for "ID / PWD" - I understand how to write the script, but not how to phrase the results of the "if" conditional. What commands would the LC script execute if the pwd/id are correct, so as to let the jpg file on the server be d

Re: Android & URLEncode & libUrlDownloadToFile

2012-07-27 Thread Alex Tweedly
I don't have Android, so can't help with that part. But just on principle, I wouldn't use URLs that encode my userid / password in a way that could reveal them and hence allow someone unlimited access to my site / account. So I'd access the files by a URL more like put "http://url.com/cgi-b

Android & URLEncode & libUrlDownloadToFile

2012-07-26 Thread Nicolas Cueto
Hello. On the desktop, this works: put "http://ID:p...@url.com/cgi-bin/dog.jpg"; into tPath set the filename of image "img" to tPath On Android, it does not. Nor does this: put "http://ID:p...@url.com/cgi-bin/dog.jpg"; into tPath put urlEncode(tPath) into tPath set the filename of image "img" t

Re: libUrlDownloadToFile

2011-10-20 Thread ddas
lle >> >> Economy-x-Talk Consulting and Software Engineering >> Homepage: http://economy-x-talk.com >> Twitter: http://twitter.com/xtalkprogrammer >> KvK: 50277553 >> >> See what you get with only a small contribution. All our LiveCode downloads >&g

Re: libUrlDownloadToFile

2011-10-20 Thread Mark Schonewille
Debdoot, I am not sure. If you want, you can always check whether the file exists afterwards and delete it if necessary. I believe that the file always starts downloading from the beginning. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http:/

Re: libUrlDownloadToFile

2011-10-20 Thread ddas
ll contribution. All our LiveCode downloads > are listed at http://qery.us/zr > > On 20 okt 2011, at 22:29, ddas wrote: > >> Howdy, >> >> Is it possible to: >> >> send exit to libUrlDownloadToFile tDownloadLink, tPathToLocalFile >> >> To sto

Re: libUrlDownloadToFile

2011-10-20 Thread Mark Schonewille
http://qery.us/zr On 20 okt 2011, at 22:29, ddas wrote: > Howdy, > > Is it possible to: > > send exit to libUrlDownloadToFile tDownloadLink, tPathToLocalFile > > To stop a download I mean. > > And > > Is it possible to open multiple connections? > > Tha

libUrlDownloadToFile

2011-10-20 Thread ddas
Howdy, Is it possible to: send exit to libUrlDownloadToFile tDownloadLink, tPathToLocalFile To stop a download I mean. And Is it possible to open multiple connections? Thanks, Debdoot On Oct 20, 2011, at 2:42 PM, William de Smet wrote: > Hi there, > In my new app I need to use a FT

Re: Blocking in iOS and libUrlDownloadToFile

2011-09-07 Thread debdoot das
> the app until the download is done. I think by "blocking" they mean you can't > request another download until this one is complete. > > Gerry > > On 07/09/2011, at 8:19 AM, debdoot das wrote: > >> In relation to blocking. >> >> This what

Re: Blocking in iOS and libUrlDownloadToFile

2011-09-06 Thread Gerry Orkin
complete. Gerry On 07/09/2011, at 8:19 AM, debdoot das wrote: > In relation to blocking. > > This what the release notes say: > > libUrlDownloadToFile url, filename > > Unlike the libUrl command of the same name, this command will block until the > download is co

Blocking in iOS and libUrlDownloadToFile

2011-09-06 Thread debdoot das
In relation to blocking. This what the release notes say: libUrlDownloadToFile url, filename Unlike the libUrl command of the same name, this command will block until the download is complete, and will notify progress through the urlProgress message as described above. However I was able to

Re: Weird script behaviour (was libUrlDownloadToFile & urlProgress)

2011-03-23 Thread Gerry
Thanks Jacq :) Back to libUrlDownloadToFile & urlProgress, I'm still interested to know how we stop the urlProgress being sent after we finish a download, as I think I'm still seeing something weird in relation to that. urlProgress returns "downloaded" when the downlo

Re: Weird script behaviour (was libUrlDownloadToFile & urlProgress)

2011-03-23 Thread J. Landman Gay
On 3/23/11 8:46 PM, Gerry wrote: Jacq Figured it out. Later in the card script I set up a scroll control, and include this line in that setup script: iphoneControlSet sScrollerId, "declerationRate", fast The compiler doesn't like that line. If I comment it out or put "fast" in quotes, everythi

Re: Weird script behaviour (was libUrlDownloadToFile & urlProgress)

2011-03-23 Thread Gerry
Jacq Figured it out. Later in the card script I set up a scroll control, and include this line in that setup script: iphoneControlSet sScrollerId, "declerationRate", fast The compiler doesn't like that line. If I comment it out or put "fast" in quotes, everything works fine. My scroll control

Re: Weird script behaviour (was libUrlDownloadToFile & urlProgress)

2011-03-23 Thread J. Landman Gay
On 3/23/11 4:57 PM, Gerry wrote: Jacq, the button is on the card, and isn't in a group. It's bizarre, I've never heard of anything like this. If you like, send me a copy of the stack and I'll take a look. You've got me curious. -- Jacqueline Landman Gay | jac...@hyperactivesw.com

Re: Weird script behaviour (was libUrlDownloadToFile & urlProgress)

2011-03-23 Thread Gerry
Jacq, the button is on the card, and isn't in a group. g -- photo site: http://gerryorkin.com On Thursday, 24 March 2011 at 8:32 AM, J. Landman Gay wrote: > On 3/23/11 4:41 AM, Gerry wrote: > > This is the script that calls the handler: > > > > on mouseup > > set the blendLevel of me to "10" >

Re: Weird script behaviour (was libUrlDownloadToFile & urlProgress)

2011-03-23 Thread J. Landman Gay
On 3/23/11 4:41 AM, Gerry wrote: This is the script that calls the handler: on mouseup set the blendLevel of me to "10" updateSongsList end mouseup Where is the button located? On the card? In a group? This is the handler that it calls (I've 'd out some domain details): on updateSongsL

Re: Weird script behaviour (was libUrlDownloadToFile & urlProgress)

2011-03-23 Thread Gerry
This is the script that calls the handler: on mouseup set the blendLevel of me to "10" updateSongsList end mouseup This is the handler that it calls (I've 'd out some domain details): on updateSongsList local songsOnDevice, songListOnServer play empty hide button "stopButton" put "Checking f

Re: Weird script behaviour (was libUrlDownloadToFile & urlProgress)

2011-03-22 Thread J. Landman Gay
On 3/22/11 8:38 PM, Gerry Orkin wrote: Jacqueline, As I mentioned, it goes crazy. Setting a breakpoint in the referring button script jumps me to the top line of the card script, but not to the handler being called. The trace shows that LiveCode is attempting to evaluate every line of code in th

Re: Weird script behaviour (was libUrlDownloadToFile & urlProgress)

2011-03-22 Thread Peter Brigham MD
f code in the card script, starting from the top, and including blank lines. Gerry -- http://gerryorkin.com On 23/03/2011, at 8:02 AM, "J. Landman Gay" wrote: On 3/22/11 1:10 AM, Gerry wrote: So more messing about reveals that my problem wasn't with libUrlDownloadToFile at all - but

Re: Weird script behaviour (was libUrlDownloadToFile & urlProgress)

2011-03-22 Thread Gerry Orkin
, and including blank lines. Gerry -- http://gerryorkin.com On 23/03/2011, at 8:02 AM, "J. Landman Gay" wrote: > On 3/22/11 1:10 AM, Gerry wrote: >> So more messing about reveals that my problem wasn't with >> libUrlDownloadToFile at all - but it's still

Re: Weird script behaviour (was libUrlDownloadToFile & urlProgress)

2011-03-22 Thread J. Landman Gay
On 3/22/11 1:10 AM, Gerry wrote: So more messing about reveals that my problem wasn't with libUrlDownloadToFile at all - but it's still weird. I have a button that calls a command - upDateSongs - from its script. If upDateSongs is in the stack script everything works fine. However

Weird script behaviour (was libUrlDownloadToFile & urlProgress)

2011-03-21 Thread Gerry
So more messing about reveals that my problem wasn't with libUrlDownloadToFile at all - but it's still weird. I have a button that calls a command - upDateSongs - from its script. If upDateSongs is in the stack script everything works fine. However if it's in the card script t

libUrlDownloadToFile & urlProgress

2011-03-21 Thread Gerry
I'm using libUrlDownloadToFile to download some mp3s. As you might know libUrlDownloadToFile periodically sends the message "urlProgress" to the originating object so you can monitor the progress of downloads. It's working well, but I'm confused about when libUrlDown