<html> <head>
<style>
- body{ font-size: 12px; font-family: Arial; }
</style>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head> <body> <b>Footer navigation:</b> <div id="complite"></div> <div id="callback"></div> <div id="new-nav"></div> <script>
- var counter=0;
$("<button>",{'id':'load','text':'view all jsp files'}).appendTo("div#complite");
$("button").click(function(){
- $("#new-nav").load("jsp.html div");
}); //$("#callback").ajaxSend(function(evt, request, settings){
//$(this).append("<li>Starting request at " + settings.url + "</li>");
- // });
// $("#new-nav").ajaxStop(function(){
- // $(this).hide(); // });
- // $("#new-nav").ajaxStart(function(){
- // $(this).show(10000); //}); $("#callback").ajaxComplete(function(event,request, settings){
$(this).html("<li>Request Complete."+counter+"</li>");
function showIt() { counter++; $("#new-nav").load("index.php?e=divadfbhfgnjnm div");
- setTimeout(showIt, 1000);
} showIt(); </script> </body> </html>