Tips & Tutorials – Javascript

Create Excel File In Javascript (Step-By-Step Example)

Welcome to a tutorial on how to create an Excel file in Javascript. Yes, you read that right. We are referring to “browser Javascript”, and not the server-side NodeJS. The dark days have passed and it is actually possible to generate Excel files using client-side Javascript – Read on for the example! ⓘ I have …

Create Excel File In Javascript (Step-By-Step Example) Read More »

Import Excel Into Database With NodeJS MySQL (Simple Example)

Welcome to a tutorial on how to import an Excel spreadsheet with MySQL and NodeJS. So want to “put an Excel file into the database”? Well, it’s actually a simple process of “read the Excel file” and “insert into database”. Read on for the example! ⓘ I have included a zip file with all the …

Import Excel Into Database With NodeJS MySQL (Simple Example) Read More »

3 Ways To Disable Scrolling In Javascript

Welcome to a tutorial on how to disable scrolling in Javascript. Need to disable scrolling on the page? Let the user fill something up before moving on? Sadly, there are no native implementations to disable scrolling in Javascript; We can only “simulate” a scroll lock using various alternatives. The common methods to disable scrolling in …

3 Ways To Disable Scrolling In Javascript Read More »

3 Ways To Hide Javascript Code From Client (Simple Examples)

Welcome to a tutorial on how to hide Javascript code from the client. Have some security concerns and don’t want the users to see your source code? Or maybe you don’t want to release the source code to a client who is refusing to pay? It is impossible to totally hide the Javascript source code, …

3 Ways To Hide Javascript Code From Client (Simple Examples) Read More »

Javascript Fetch With GET Query Params (Quick Examples)

Welcome to a tutorial and example on how to send a Javascript fetch request with GET query parameters. New to the fetch API, and trying to pass in some query parameters? To send GET query parameters with Javascript fetch, simply create a new URL object and append the search parameters: var data = { “KEY” …

Javascript Fetch With GET Query Params (Quick Examples) Read More »