Jump to content
Sign in to follow this  
DelStone

How to pause or stop a json.send command

Recommended Posts

DelStone

Not sure if anyone has come across this before - I have this code:

$json = ObjCreate("Microsoft.XMLHTTP")
  $json.Open("GET", $url & "&access_token=" & $Token, 0)
  $json.Send
  $result = $json.responseText

When the line " $json.Send " is hit, the machine freezes for several seconds whilst the query results file is grabbed. However I have pause/stop buttons on my gui, which if they are clicked during this period, the process should stop - any ideas how I can access the "code" or "function" .send to insert some code to allow this functionality to happen?

Share this post


Link to post
Share on other sites
DelStone

The problem with the function you point to is that you need access to the details of the function to insert code into in order to allow the interrupt to occur - which is what I am pretty much asking, how do I access the json.send code to do that - is it possible? :)

Share this post


Link to post
Share on other sites
DelStone

eery wind blows in the background.... anyone?

Share this post


Link to post
Share on other sites
ChrisL

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×