Click here to Skip to main content
15,881,863 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to make an image as page load, i.e till the html is fully rendered i will show a loading image, say a gif image. So till the the page is not fully rendered, the user must not be able to click anything on the page. In order to do that i must show the image over the entire page right? So how can i acieve this. Can any one please help me.

I am doing it in Angular JS and the problem is the time delay happens in rendering rather than data fetch.
Posted
Updated 18-Aug-14 4:01am
v3
Comments
Nathan Minier 18-Aug-14 9:07am    
Implementation largely depends on if you're looking for async or sync operation.
E.F. Nijboer 18-Aug-14 9:07am    
Your question is very unclear. Please be more clear. What does "make an image" actual mean for example?

1 solution

Not a very easy task to accomplish without a plugin. I use BlockUI to accomplish this: http://malsup.com/jquery/block/[^]
 
Share this answer
 
Comments
Arjun Menon U.K 18-Aug-14 10:18am    
I can't write the Javascript section as i am using Angular JS , anyway thanks for the reply
JasonMacD 18-Aug-14 15:18pm    
There is always a way to get it done, just have to do some research and try a few things. This is a plugin like BlockUI specifically for Angular JS: https://github.com/McNull/angular-block-ui
JasonMacD 18-Aug-14 15:19pm    
This forum post also says BlockUI the first plugin I suggested does work with Angular JS http://stackoverflow.com/questions/23368709/jquery-blockui-plugin-and-angular-display-ajax-call-time-as-incremented-seconds
JasonMacD 18-Aug-14 15:22pm    
http://plnkr.co/edit/XWRfHX?p=preview

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900