How to detect browser, engine, OS, CPU, and device using JavaScript?

How to detect browser, engine, OS, CPU, and device using JavaScript?

In this tutorial, I’ll be talking about a JavaScript-based User-Agent string parser to detect browser, engine, OS, CPU, and device using JavaScript. UAParser.js is a JavaScript Plugin that can be used either in browser (client-side) or in NodeJS (server-side) environment. UAParser is also available as jQuery/Zepto Pluging, Bower/Meteor Package and RequireJS/AMD module. This library aims to identify detailed type of web browser, layout engine, operating system, cpu architecture, and device type/model, entirely from user-agent string with a relatively small footprint (~11KB when minified / ~4KB gzipped).

Read more

How to load MySQL data in Bootstrap Modal Body using AJAX

How to load MySQL data in Bootstrap Modal Body using AJAX

This article was written when I was doing my minor project back in 2015, but wait I have updated this article with the support of new PHP 7 and MySQLi syntax. You’ll find me using PHP, Bootstrap (not the latest but process is same on new Bootstrap 4 as well), and MySQLi with some flavor of AJAX in this article.  On my project I was building a dashboard to show all data in a table by importing data from MySQL database using PHP, where I also added an Edit button at the end of each row that opens up a Modal box, displaying and allowing the admin to alter information and update the database.

So, in this tutorial I will be showing you the best way of Using Bootstrap Modal with AJAX to import data from MySQL database. Go through this tutorial to learn How to load MySQL data in Bootstrap Modal Body using AJAX.

Read more