Get started with jquery-ajaxy CDN

MIT licensed

JQuery AJAX is a library that enables asynchronous communication between a web page and a server, using common web data formats and standard web protocols.

Tags:
  • AJAX
  • web
  • bookmarkable

Stable version

Copied!

How to start using jquery-ajaxy CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with jquery-ajaxy CDN - cdnhub.io</title>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://cdn.cdnhub.io/jquery-ajaxy/1.6.1/scripts/jquery.ajaxy.min.js"></script>
    <script>
        $(document).ready(function() {
            $('#button').click(function() {
                $.ajaxy.get('https://jsonplaceholder.typicode.com/todos/1')
                    .done(function(data) {
                        $('#result').text(JSON.stringify(data));
                    })
                    .fail(function(jqXHR, textStatus, errorThrown) {
                        $('#result').text('Error: ' + textStatus);
                    });
            });
        });
    </script>
</head>
<body>
    <button id="button">Fetch Data</button>
    <p id="result"></p>
</body>
</html>
Copied!
Copied!

All versions