I am requesting for a PDF from server by doing this:
html: '<embed type="application/pdf" width="1500px" height="800px" src="' + src + '"/>'
Now I know it is very easy to add a loading mask to AJAX Request but how about adding it to the above mentioned request. Lets say if I do this:
Ext.loadMask();
html: '<embed type="application/pdf" width="1500px" height="800px" src="' + src + '"/>'
Ext.hideMask();
The hideMask() gets called even before the response is returned from the server.
I tried onload as well like this:
html: '<embed type="application/pdf" width="1500px" height="800px" src="' + src + '" onload=' + console.log("this PDf has been loaded") + '/>'
But even this gets called even before I see the PDF