How to Change URL Parameters with Javascript
This tutorial explains how you can change url parameters - edit, add or delete, using the URL and URLSearchParams objects.
Some Less Known CSS Properties for Form Input Fields
This post briefly discusses some less popular CSS properties for form inputs, for example tab-index, caret-color etc. You can use them to make your form even more effective.
Copying to Clipboard with Javascript
The feature of copying something to the OS clipboard is quite useful for the end user. In a web page it can be implemented with the Selection API.
How to Get URL Parameters with Javascript
The URL and URLSearchParams objects makes it very easy to get parameters in a url.
How to Write a REST API Class for Node.js
While implementing an API with Node.js, it is better to write it as a class, create a module, and import the module in the main Node.js script. This tutorial describes general coding guidelines how you can create such a class.
Javascript Promises - Understanding Chaining and Error Handling
Javascript Promises are quite simple to start with, but confusions arise when Promises are chained. This tutorial focuses on the return values of then() and catch(), which are crucial to understanding the process.
Typing and Deleting Effect with Javascript
Typing effect is a good way to grab user attention. To implement typing effect, you can start by showing the first character initially; after a few milliseconds you can show the first 2 characters; and so on till the whole sentence has been shown.
Dynamically Loading Fonts with Javascript
There are some cases where an application must load a font dynamically rather than setting it through the @font-face CSS rule. Fonts can be downloaded with Javascript using the new CSS Font Loading API.
Setting HTTP Cache Headers with PHP
Through the header() function it is possible to set "Cache-Control" and "ETag" headers in a PHP script.
HTTP Caching for Web Applications - Practical Examples of Cache Headers
HTTP caching can be achieved by sending Cache-Control and ETag headers from the server. This tutorial explains caching through some examples where HTTP headers are exchanged between the browser and the server.
HTTP Caching for Web Applications - Cache Headers Explained
HTTP caching gives a good performance boost to your websites and applications. Caching can be implemented through a combination of Cache-Control and ETag response headers.
How to Get Image Dimensions (Width & Height) with Javascript
Width and height of an image can be found using the "naturalWidth" and "naturalHeight" properties of the image DOM element.
Creating a Full Height Page with Fixed Sidebar and Scrollable Content Area
Webpages with a fixed sidebar and a scrollable content area are quite popular. The page expands to 100% height of the screen. Depending upon the height, both the sidebar and content may have scrollbars.
Javascript - Downloading Files with AJAX and Showing a Progess Bar
Currently most of the web applications show a normal link for the user to download a file. However it is also possible to download a file using a Javascript AJAX request.
Pure Javascript - AJAX File Uploading and Showing Progess Percentage
This tutorial shows how to upload a file using Javascript. It includes everything that is involved - from selecting a file, validating its type and size, sending an AJAX request and showing the upload progress of the file.
Verifying Paypal IDs by Implementing Login with Paypal (using PHP)
While asking a user for his Paypal account, it is better to verify it. This can be done by implementing Login with Paypal, and getting the verified ID via API calls.
Changing Size of Iframe Automatically to Fit Content
You can inform the parent about the changed size of the iframe page by passing messages from the iframe to the parent. This is helpful in preventing scrollbars from coming up.
Tracking Downloads with Google Analytics using Custom Events
Track downloads happening on your website using Google Analytics, and a bit of Javascript. See the analytics data in the Google Analytics dashboard.
Setting HTTP Headers in a Beacon Request
The Beacon API extracts the type of the transmitted data, and sets this as the Content-Type for the HTTP request.
Sending AJAX Data when User Moves Away / Exits from Page
It is sometimes required that your application sends an AJAX to the server before the user moves away from the page (goes to another page, reloads the page, closes the browser etc). The tutorial explains how to do this.