Showing posts with label jQuery. Show all posts
Showing posts with label jQuery. Show all posts

2019/10/06

A bare minimum, working HTML + jQuery framework that will be executed automatically upon the completion of page load.

This is a bare minimum, working HTML + jQuery framework that will be executed automatically upon the completion of page load.

index.html

<!DOCTYPE html>

<html>
    <head>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
        <!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /> -->
        <!-- script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> -->
    </head>
    
    <body>
    </body>
</html>

<script>

    $(document).ready(function(){
        
        console.log('Hello World');
        alert('Hello Kitty');
      
    });
    
</script>

The Result

2019/09/30

How to retrieve data from MySQL database using PHP and display it using jQuery and Ajax

This is a quick summary of how to retrieve data from MySQL database using PHP and display it using jQuery and Ajax.

Step 1 - Prepare MySQL database and data table.

The SQL query below creates a database and data table and fills the table with sample data.

2016/11/02

jQuery - Reading and displaying the content of external file

This is a quick example of how to read and display the content of an external file.

File stored on the same server

Code