Loading state button in Bootstrap 3

<button type=”button” data-loading-text=”Loading…” class=”btn btn-primary”>
Loading state
</button>

body {
padding: 10px;
}

$(“button”).click(function() {
var $btn = $(this);
$btn.button(‘loading’);
// Then whatever you actually want to do i.e. submit form
// After that has finished, reset the button state using
setTimeout(function () {
$btn.button(‘reset’);
}, 1000);
});

Advertisements

Virtual private network (VPN)

A virtual private network (VPN) extends a private network across a public network, and enables users to send and receive data across shared or public networks as if their computing devices were directly connected to the private network. Applications running across a VPN may therefore benefit from the functionality, security, and management of the private network.