-
-
Save haampie/995631 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function LoadDashBoard() | |
{ | |
$("#actdiv").hide('fast'); | |
var loadUrl = "ajax/load_agents.php"; | |
var ajax_load_bar = "<div align='center'><img src='images/loadingAnimation.gif' alt='loading...' /></div>"; | |
$("#actdiv").html(ajax_load_bar).load(loadUrl,function() { | |
$(".agent-tab").click(function(){ | |
alert('cliek'); | |
}); | |
}); | |
$("#actdiv").show(3000); | |
} | |
//The HTML That gets loaded on the #actdiv is the following. | |
<div class="agent-tab"> | |
<div class="agent-tab-header"><? echo strtoupper($row['device_name']); ?></div> | |
<div class="agent-tab-body"> | |
<? // row starts here ?> | |
<div class="agent-tab-row"> | |
<div class="agent-tab-side-right"> | |
<div class="agent-tab-side-head agent-content"> | |
No of Profiles | |
</div> | |
<div class="agent-tab-side-value agent-content-value"> | |
<?=$noOfPros?> | |
</div> | |
</div> | |
<div class="agent-tab-side-left"> | |
<div class="agent-tab-side-head agent-content"> | |
No of Dataitems | |
</div> | |
<div class="agent-tab-side-value agent-content-value"> | |
<?=$totDataItems?> | |
</div> | |
</div> | |
</div> | |
<? // row ends here ?> | |
<? // row starts here ?> | |
<div class="agent-tab-row"> | |
<div class="agent-tab-side-right"> | |
<div class="agent-tab-side-head agent-content"> | |
Last Viewed | |
</div> | |
<div class="agent-tab-side-value agent-content-value"> | |
<?=$row['last_viewed']?> | |
</div> | |
</div> | |
<div class="agent-tab-side-left"> | |
<div class="agent-tab-side-head agent-content"> | |
Total Views | |
</div> | |
<div class="agent-tab-side-value agent-content-value"> | |
<?=$row['total_views']?> | |
</div> | |
</div> | |
</div> | |
<? // row ends here ?> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment