Posts tagged ‘jquery a href’
JQuery: Showing a progress image while processing background task
I thought to write a simple example to show a progress bar or a gif image showing a that a task is happening at the background using a jquery function.
i) Include jquery script file in the header section and the following code in the head
<script language="javascript"> $(document).ready(function(){ $('#progress').hide(); $("#main a.bgdiv").click(function(){ $("#progress").show("slow"); $("body").load($(this).attr('href')); return false; }); }); </script>