loading bar |
-
rchiu5hk
Junior Member
-
Posts: 32
Threads: 22
Joined: Jun 2015
Reputation:
0
(02-08-2016, 02:44 AM)Diederik Wrote: Your question is unrealted to Codeigniter. You will need client side Javascript for this. In Jquery you could do it like this:
Code: $(".button").click(function(e) {
e.preventDefault();
$('#result').html('<img src="/ajax-loader.gif" alt="Loading"/>');
$.ajax({
type: "POST",
url: '/yourUrl' ,
data: { YourDataArray},
success: function (data) {
$('#result').html(data);
},
error: function (xhr, status) {
$('#result').html('Error, somethign went wrong');
}
});
thanks
|
Messages In This Thread |
RE: loading bar - by rchiu5hk - 02-08-2016, 02:47 AM
|