javascript - How to get wait screen to show onload when it has CSS styling -


I have a good size web application that is taking more than 10 seconds to load and I make a simple " "Please wait" text message.

(This is accessing and processing large amounts of information about more than 30 employees of 8 different tables, more than 10 records , And many of these queries on the results of the last DME query If it is dependent, it will not be cost effective for a program that will reach 3 times in a month and will be done only by internal supervisors.)

I thought that a div with the original How to make the text which I want and how to hide it when the program is finished and the page is ready to display, what I am doing with it is formatting. The want to, I want to make it bold and though it is increasing the font, do anytime I try to get as much as it is the center, the message no longer appears. (Tried even through CSS and HMTL) I am wondering if there is something like this that the page should not be loaded unless all the styled content is available and not formatted. If so, is there a way around this? Even enableable at the center will also be acceptable.

This works:

  self.MAIN.document.getElementById ("paneBody"). InnerHTML = '& lt; div id = "waitmsg" & gt; Please wait & lt; / Div & gt; ';   

It is not:

  self.MAIN.document.getElementById ("paneBody"). innerHTML = '& lt; Div id = "waitmsg" style = "text-align: center;" & Gt; Please wait & lt; / Div & gt; ';   

I would appreciate any help or insights on this.

UPDATED:

Here is the code for this part of the program, which run onload.

  function open program () {certify ("framesnm = 'jstrine' | fencnm = 'intmghrh wkd' '| desired edit =' em '); //self.MAIN.document.getElementById (SpaceBody -). Inner HTML = '& lt; div id = "WaitMsg" & gt; Please wait & lt; / div & gt;' var; textText = self.MAIN.document.createElement ("div"); waitText.innerHTML = "Please wait"; waitText.style.textAlign = "center"; self.MAIN.document.getElementById ("paneBody") appendChild (waitText).}    

You want to create a div node and then click settings Can set? var waitText = self.MAIN.document.createElement ("div"); waitText.innerHTML = "please wait"; waitText.style.textAlign = "center" ; self.MAIN.document.getElementById ("paneBody") appendChild (waitText).

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -