libURLSetStatusCallback

jhonken jhonken at webdsp.com
Thu Nov 9 09:55:06 EST 2006


Dave,
  Thanks that works great.  I'm still not understanding how the
"libUrlSetStatusCallback works.  I've been reading the docs and I keep
getting an error with the following test code:
 
libURLSetStatusCallback "myProgress",the long ID of me

go stack URL "http://www.x12help.com/mystack.rev" in a new window

put myProgress into fld "tester"

 

I have a button that is executing the code above and an empty field
called "tester".  From what I've read I think the messages is going into
"MyProgress" which I think I should be able to put out to a field or
progress bar.  I keep getting the error below.  I'd appreciate any help
I could get.  Jeff

executing at 9:45:37 AM

Type Chunk: no such object

Object Monitor

Line put myProgress into fld "tester"

Hint tester

 


On 8 Nov 2006, at 22:04, jhonken wrote:

> How would you catch an error with the "Go Stack URL" if the URL was  
> non
> existant would you use the "URLStatus"?
>
> Also can you combine the "Go Stack URL" with the "URLStatus" and  
> feed it
> to a progrress bar?

You won't be able to use urlStatus, but you can use  
libUrlSetStatusCallback to track the progress.

As for checking errors, it is probably easier to check the result.

go stack url myUrl
put the result into tRes
if tRes is not empty then
   answer tRes
end if

Cheers
Dave




More information about the use-livecode mailing list