Makitweb Posts

CodeIgniter DataBase JQuery PHP

When generating a PDF with Dompdf then it ignores fonts which are not available in its internally – Helvetica, Times-Roman, Courier, Zapf-Dingbats, Symbol.

Require to load the fonts for use in PDF creation which is not existing in Dompdf internal fonts.

In this tutorial, I am creating PDF of MySQL database table records and set its font-family using Dompdf.

How to set different font-family in Dompdf

File upload is one of the basic requirement on the web application.

I am using axios package to send AJAX request to upload a file. Send a selected file using FormData object.

In this tutorial, I show how you can upload a file using Vue.js and PHP.

How to upload file with Vue.js and PHP

AJAX How To PHP Vue.js

CodeIgniter already has a library for pagination.

Which is easier to implement on the page. But you need to customize it to add extra functionality like – search, sorting, rows per page.

Datatables is a jQuery library which comes with all basic functionality which requires for pagination.

Need to handle the request and return the response in the specified format.

In this tutorial, I show how you can implement Datatables pagination in CodeIgniter.

DataTables AJAX Pagination with Search and Sort in CodeIgniter

AJAX CodeIgniter DataBase JQuery PHP

CodeIgniter DataBase How To JQuery PHP

Web Speech API allows recording human voice and convert it to text or generate an audio file.

This can be used to enable the users to access the website hand free and give commands with voice.

Sometimes, requires to detect the user voice volume.

To do this I am using volume-meter.js library.

It returns pitch volume.

Use this value to draw graphical representation.

Pitch volume detection in Speech Recognition - JavaScript

How To Javascript

Sometimes, JavaScript modification doesn’t reflect on the page while running.

Need to clear browser cache manually each time when the file gets updated.

It makes the debugging process hard.

If the project contains some bug and you fix it but the user needs to clear the browser cache to reflect the changes.

In this tutorial, I show how you can prevent JavaScript file from Caching by the browser.

How to prevent browser from caching Javascript file

How To Javascript