error in fetching URL

Peter M. Brigham pmbrig at gmail.com
Sat Jul 20 22:47:06 EDT 2013


Nope, I'm not clicking the button twice. I just opened up the test stack I'm using to develop this, having not used it since this morning. I clicked the button once and immediately got the error message. The funny thing is that it worked at first, now nothing but error. If I wait 10 minutes while the stack is open and come back to it and click the button again, I get the same immediate error message. If I close the stack and re-open it and click the button once, I get the error. No soap.

???

-- 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





More information about the use-livecode mailing list