EasyUI Forum
April 19, 2024, 03:23:40 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to solve this ?  (Read 1888 times)
Ariovaldo
Newbie
*
Posts: 27


Ariovaldo - São Paulo - SP


View Profile WWW Email
« on: November 18, 2022, 12:50:55 PM »

Hello

on all my pages in the opening of them is happening this, keeps appearing the content before opening the window, follows the images and the generated page, what am I doing wrong ?

Thank you
Ariovaldo
Logged

programming is easy, it is difficult to make programs
Ariovaldo
Newbie
*
Posts: 27


Ariovaldo - São Paulo - SP


View Profile WWW Email
« Reply #1 on: November 18, 2022, 12:55:00 PM »

this is the mounted page.
Logged

programming is easy, it is difficult to make programs
Ariovaldo
Newbie
*
Posts: 27


Ariovaldo - São Paulo - SP


View Profile WWW Email
« Reply #2 on: November 18, 2022, 12:56:40 PM »

this is html
Logged

programming is easy, it is difficult to make programs
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #3 on: November 20, 2022, 06:21:10 AM »

Please use this code to solve this issue.
Code:
<script type="text/javascript">
   $.parser.onComplete = function(){
      $('body').css('visibility', 'visible');
   }
</script>

<body style="visibility:hidden">
...
Logged
Ariovaldo
Newbie
*
Posts: 27


Ariovaldo - São Paulo - SP


View Profile WWW Email
« Reply #4 on: November 20, 2022, 04:03:09 PM »

ok !, Grin

worked, thanks

Ari
Logged

programming is easy, it is difficult to make programs
Ariovaldo
Newbie
*
Posts: 27


Ariovaldo - São Paulo - SP


View Profile WWW Email
« Reply #5 on: November 21, 2022, 05:20:21 AM »

Ok, it worked as it passed me, now taking advantage of the subject, I need to put a message loading the page.. or a .GIF preloader.. leaving the body hidden does not appear anything as it comes out of this pool .. ?

 Grin
Ari
Logged

programming is easy, it is difficult to make programs
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #6 on: November 21, 2022, 04:04:10 PM »

Here is the example shows how to display a loading message.
Code:
<style>
.loading{
position: absolute;
top: 20px;
width: 200px;
left: 50%;
margin-left: -100px;
padding: 5px;
font-size: 14px;
text-align: center;
background: #FBEC88;
color: #222;
visibility: visible;
}
</style>
<script>
$.parser.onComplete = function(){
$('body').css('visibility', 'visible');
$('#loading').remove();
}
</script>
<body style="visibility:hidden">
<div id="loading" class="loading">Loading...</div>
...
Logged
Ariovaldo
Newbie
*
Posts: 27


Ariovaldo - São Paulo - SP


View Profile WWW Email
« Reply #7 on: November 22, 2022, 04:50:17 AM »

Thanks for the answer

God bless you.

Ari
Logged

programming is easy, it is difficult to make programs
jega
Full Member
***
Posts: 190


View Profile
« Reply #8 on: December 07, 2022, 10:26:40 AM »

Please use a better subject.

Everyone has to open the post to see what it 's about

Jesper
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!