libURLSetStatusCallback

Dave Cragg dcragg at lacscentre.co.uk
Thu Nov 9 10:53:23 EST 2006


On 9 Nov 2006, at 14:55, jhonken wrote:

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

myProgress is the name of a handler (message). Try something like this:

on mouseUp
   libURLSetStatusCallback "myProgress",the long ID of me
   go stack URL "http://www.x12help.com/mystack.rev"
end mouseUp


on myProgress pUrl, pStatusString
   put pStatusString into field "tester"
end myProgress

Cheers
Dave



More information about the use-livecode mailing list