In this article, I am going to teach you, how you can use AJAX in sweetalert 2. As per sweetalert 2 documentation, you can use Fetch API for calling AJAX requests. Fetch API is good, but not for more control over your request, like using POST method, adding headers etc. Fetch API is not so …
Read More “AJAX in Sweetalert 2”
In this article, I am going to show you how you can show an ellipsis on a long text using HTML and CSS. We will be using just 4 CSS properties. Video tutorial: For example, you have a paragraph like this: Then give it a width and you will start seeing it in wrap. To …
Read More “Display ellipsis on long text HTML and CSS”
Hello. In this post, we will show you, how you can split a camel case word and capitalize it using regex (regular expression) in Javascript. Input Output adnanTechCom Adnan Tech Com Following code will split the camel case into multiple words and then capitalize it: capitalize variable will now have value: This regular expression will …
Read More “Split camel case using regex in Javascript”
Hello. In this article, we are going to show you some MongoDB and MySQL equivalent queries. This will help you greatly if you want to convert a MySQL project into MongoDB or vice-versa. Video tutorial: Introduction First, let’s give a small introduction to both of these databases. MongoDB MongoDB is schema-less database architecture. Means that …
Read More “MongoDB and MySQL equivalent queries”
Hello. In this article, I am going to show you, how you can send money to someone via Wise. What is Wise ? Wise is a foriegn exchange company that allows people all around the world to send money to their friends or family members. Most of our clients use Wise for buying our premium …
Read More “How to send money via Wise”
In this tutorial, you will learn how to call a function in your Node JS server file from the EJS template file. First, we are going to install all the required modules. Run the following commands in your terminal: Then, create a file named server.js and write the following code in it. Then, create a folder named views and …
Read More “How to call Node JS function from EJS”
Learn how to securely upload and view image in Node JS and Mongo DB. Most of the time when we create a website where we allow users to upload images, we face a problem to secure them from unauthorized access. For example, you are creating a website where you are allowing users to upload pictures …
Read More “Securely upload and view image in Node JS and Mongo DB”
In this article, you will learn how to convert UTC datetime to user’s local timezone using Javascript. Your database is centralized, but your user’s are located on different geolocations. Time stored in your database is usually UTC by default. But your users should see the time according to their timezone. So how are you going …
Read More “Convert datetime to local timezone – Javascript, PHP and MySQL”
In this tutorial, we are going to teach you, how you can create video streaming and buffering like YouTube in NodeJS. In YouTube, you have noticed that the whole video is not downloaded in the browser at once. Only 10-15 seconds of the video has been downloaded in the browser. And more will be downloaded …
Read More “Video buffering and streaming in NodeJS”
End-to-end encrypted chats are more secured than the ones where encryption is done on the server side. Because the messages get encrypted even before sending them to the server. This will prevent any read or alter operation of messages in-transit. Let’s learn how to do it. We will be using Javascript for encryption and decryption. …
Read More “End-to-end encryption in Javascript, PHP and MySQL”