showing results for - "toastr success "
Juan David
03 May 2018
1<!DOCTYPE html>
2
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head runat="server">
5    <title></title>
6    <link href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css" rel="stylesheet" />
7    <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet" />
8    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
9    <script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js"></script>
10    <script>
11        function showContent() {
12            toastr.options = {
13                "closeButton": true,
14                "debug": false,
15                "progressBar": true,
16                "preventDuplicates": false,
17                "positionClass": "toast-top-right",
18                "showDuration": "400",
19                "hideDuration": "1000",
20                "timeOut": "7000",
21                "extendedTimeOut": "1000",
22                "showEasing": "swing",
23                "hideEasing": "linear",
24                "showMethod": "fadeIn",
25                "hideMethod": "fadeOut"
26            }
27            toastr["success"]("This is a message");
28
29        }
30    </script>
31</head>
32<body>
33    <form id="form1" runat="server">
34        <div>
35            <asp:Button ID="Button1" runat="server" Text="Button" CssClass="btn btn-primary" OnClick="Button1_Click" />
36        </div>
37    </form>
38</body>
39</html>