page loader

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
acellec
php-forum Active User
php-forum Active User
Posts: 26
Joined: Thu May 17, 2012 5:44 pm

Wed Jun 06, 2012 5:36 pm

can you help me. i have separate files for my menu and my main page. below are my codes;

my problem is if i click any of my menu my page loader keeps on loading
can you help me? how to make a page loader?
mainmenu.php

Code: Select all

<script type="text/javascript">
stm_ai("p1i0",[1,"New Quarterly Report","","",-1,-1,0,"javascript:page_loaderM.style.display='block';showModule('frmref.php','tab=1&tname=Master File','get')","_self","","","","",0,0,0,"","",0,0,0,0,1,"#8DC1AE",1,"#5EB797",0,"","",3,3,0,0,"#E6EFF9","#000000","#000000","#000000","8pt Verdana","8pt Verdana",0,0,"","","","",0,0,0]);
</script>
monitor.php

Code: Select all

<html>
<head>
</head>

<body>
<div id="mainmenu">
   <?php
              
    switch($menuType) 
    {                  
      	case 0:
	break;  	
	case 1:
       	include("includes/mainmenuLevel1.php"); 
       	break;
   	case 2:		
       	include("includes/mainmenu.php"); 		
       	break;
    }                
     
   ?>
 </div>

 <div id="contentmid">
                 

                       <!--All modules go here-->
		   
                   </div>

 <div  id="page_loaderM" class="page_loader">
 <img src="images/loader.gif" />
 </div>
 
</body>

</html>
acellec
php-forum Active User
php-forum Active User
Posts: 26
Joined: Thu May 17, 2012 5:44 pm

Thu Jun 07, 2012 3:49 pm

can you help me please?
acellec
php-forum Active User
php-forum Active User
Posts: 26
Joined: Thu May 17, 2012 5:44 pm

Sun Jun 10, 2012 4:44 pm

can you help me make a page loader? like if i click a menu, a spinner image will appear until page is properly loaded. Please?
Post Reply