EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Ariovaldo on November 18, 2022, 12:50:55 PM



Title: How to solve this ?
Post by: Ariovaldo 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


Title: Re: How to solve this ?
Post by: Ariovaldo on November 18, 2022, 12:55:00 PM
this is the mounted page.


Title: Re: How to solve this ?
Post by: Ariovaldo on November 18, 2022, 12:56:40 PM
this is html


Title: Re: How to solve this ?
Post by: jarry 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">
...


Title: Re: How to solve this ?
Post by: Ariovaldo on November 20, 2022, 04:03:09 PM
ok !, ;D

worked, thanks

Ari


Title: Re: How to solve this ?
Post by: Ariovaldo 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 .. ?

 ;D
Ari


Title: Re: How to solve this ?
Post by: jarry 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>
...


Title: Re: How to solve this ?
Post by: Ariovaldo on November 22, 2022, 04:50:17 AM
Thanks for the answer

God bless you.

Ari


Title: Re: How to solve this ?
Post by: jega 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