error in fetching URL

Dar Scott dsc at swcp.com
Sat Jul 20 23:42:51 EDT 2013


The error message comes from libURL, so you can probably clear it with resetAll when it happens until you track down the problem.

I'm not sure what would cause that for that long of a period.  Maybe a command-period in the middle of the URL operation.  Just guessing.

Dar

On Jul 20, 2013, at 8:58 PM, Peter M. Brigham wrote:

> Weird. I quit LC, restarted it, opened the stack, now it's working.
> 
> -- Peter
> 
> Peter M. Brigham
> pmbrig at gmail.com
> http://home.comcast.net/~pmbrig
> 
> On Jul 20, 2013, at 3:50 PM, Dar Scott wrote:
> 
>> Part of  'put URL...' gets translated to a LiveCode command that fetches the request.  This command uses a version of wait that allows messages.  
>> 
>> I suspect you are clicking a button again before this is finished.  
>> 
>> You might want to consider these two things in that button.  Set the cursor at the beginning so you will get feedback as to when it is still cranking away.  Also, create an error if you click it while it is busy.  (Use a local variable busy that you set to true at the start and false at the end but bail before it is set if it is already set.)
>> 
>> Dar
>> custom libraries and externals
>> 
>> On Jul 20, 2013, at 11:45 AM, Peter M. Brigham wrote:
>> 
>>> I'm trying to design a poor man's spelling checker, and I'm using the script below. I keep getting the error "error Previous request not completed" and I don't know enough about internet connections to interpret what's going on. Can anyone help?
>>> 
>>> function checkSpelling tWord
>>> put "http://www.dict.org/bin/Dict?Query=<tWord>&Form=Dict1&Strategy=*&Database=*" into theURL
>>> replace "<tWord>" with tWord in theURL
>>> put url theURL into tHTML
>>> put the result into tErr
>>> if tErr <> empty then
>>>    put "Error:" && tErr into fld "text"
>>> else
>>>    put tHTML into fld "text"
>>> end if
>>> exit to top -- temporarily
>>> -- more code will go here, to parse the HTML
>>> -- return listOut
>>> end checkSpelling
>>> 
>>> -- Peter
>>> 
>>> Peter M. Brigham
>>> pmbrig at gmail.com
>>> http://home.comcast.net/~pmbrig
>>> 
>>> 
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list