Hey,
I'm just guessing here, but probably I'm on the right track;
The trouble is that in development mode, play has only one worker that handles incoming requests. From application.conf:
# Execution pool
# ~~~~~
# Default to 1 thread in DEV mode or (nb processors + 1) threads in PROD mode.
# Try to keep a low as possible. 1 thread will serialize all requests (very useful for debugging purpose)
# play.pool=3
I'm guessing your application logic goes as follows:
1) The browser starts loading the ajax request
2) The browser shows the loading div
3) The browser sees an image in the loading div and asks it from the server
4) The server is busy and won't return the image before the ajax request is processed
5) When the ajax request is processed, you won't need the image anymore and the div is hidden again
And thus you just don't see the image.
So try two things:
2) Increase the pool size and see if it shows up. Later put it back to 1 for the same reason as mentioned in the conf file
Cheers,
Marius