0
response = service.getInfo(request);

How can I display an image while my response object is being populated? Service is a web service located on another server that I have no control over.

Any help is greatly appreciated.

7
  • 1
    This needs a lot more information! Commented Feb 7, 2011 at 20:19
  • You could use the asynchron methods of the web service, and hide the image when the asynchron completion event is fired. Commented Feb 7, 2011 at 20:19
  • @Hawxby - what else does it need? Commented Feb 7, 2011 at 20:31
  • @Uwe - do you have an example? Commented Feb 7, 2011 at 20:32
  • Well a bit of detailing as to how you would like to do it. For example in such a situation I may default my page to a loading state then fire an ajax request either back to my application or the 3rd party service to download the data. Once the data has finished downloading then I would use jQuery to make whatever changes needed, remove the image, etc. When a new request is fired I'd set it up to display the loading image, rinse and repeat Commented Feb 7, 2011 at 20:53

1 Answer 1

1

Here is one way to do it.

The bottom line is that you will need some asynchronous process going on. And that implies AJAX. The library or methodology you use is up to you.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.