javascript - How do I build a page preloader for a php page? -


i want include page preloader pages on application. gmail displays when loading entire page in background. don't want prelaoding bar mechanism display preloading message while entire page loads in background , upon successful load displayed.

take example site: http://www.emirates.com/ae/english/ run search flight - see preloading message after teh page loaded. don't see redirects here.

how implement - site built using php , tonnes of javascript.

your html writes out pre-loading message, , set javascript onload event. event calls javascript code load whatever data need via ajax, hide loading message , shows actual page.

of course, means people no javascript have problems - have sort them or decide can live without them.

add: oh, , may want check disability laws in country before deciding can live without them - may have legal responsibility make site accessible disabled. i've ever used technique on sites rely on js heavily can't run without it. note gmail has 2 interfaces - 1 js , 1 plain html. how make service accessible.

add: http://code.google.com/p/bobchess/ code i've done this. loading message , onload event start application.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -