Weird. I quit LC, restarted it, opened the stack, now it's working.

-- Peter

Peter M. Brigham
[email protected]
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
>> [email protected]
>> http://home.comcast.net/~pmbrig
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> [email protected]
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to