Calling WebMethods / WebService using jquery is blocking

Posted by Sir Psycho on Stack Overflow See other posts from Stack Overflow or by Sir Psycho
Published on 2010-04-06T00:00:58Z Indexed on 2010/04/06 0:03 UTC
Read the original article Hit count: 640

Filed under:
|
|

Hi,

I'm generating a file on the server which takes some time. For this, I have a hidden iframe which I then set the .src attribute to an aspx file i.e iframe.src = "/downloadFile.aspx"

While this is taking place, I'd like to have a call to a web service return the progress. To do this, I thought I could use window.setInterval or window.setTimeout but Javascript seems to be blocked as soon as I set the iframe src attribute.

Does anyone know how to get around this or perhaps try a different approach?

I have also tried handlers, but the request never gets to the server so I'm assuming is a browser/javascript issue.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about JavaScript