View Single Post
Old 02-22-2010, 10:19 PM  
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
Didn't test it at all... and you need to load the jquery libraries.
Code:
Jquery:

<script type="text/javascript">
	$("#isLoading").hide();
	$(document).ready(
        function(keyPage, jsNum, aNum) {
		$("#isLoading").show();
                $.post("/PHP_FILE_TO_CALL.php", { delimiter: $("#delimiter").val(), dump: $("#dump").val() },
                function(response){
			$("#ajaxCol"+jsNum).html(unescape(response));
                });
		$("#isLoading").hide();
        });
    };
</script>

Then just do like in the html:
<span id="isLoading"><img src=ajax.gif></span>

Last edited by Alky; 02-22-2010 at 10:21 PM..
Alky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote