Author: Hiral Patel

jQuery Basics

jQuery is the easiest solution for DOM interactions. In this post, I am going to explain jQuery Basics. Next to that, I will show a live demo on code pen to demonstrate form interactions using jQuery Basics. Before we start, lets understand what is the use of jQuery? In simple words, jQuery is an API to select DOM elements from HTML document. You can access/modify attributes on selected DOM elements and bind events to perform operation. Moreover, jQuery provides ajax API for server interactions without reloading page. jQuery provides methods for animation of DOM elements. In this post, I...

Read More

Troubleshoot : Error 28 from Storage Engine

Error 28 from Storage Engine is one of the very common error if your backend is connected with MySQL database. In this post, I am going to explain you how to troubleshoot Error 28 from Storage Engine. Java application will throw java.sql.SQLException: Got error 28 from storage engine exception to indicate MySQL Error 28 from Storage Engine. Reason for Error 28 from Storage Engine This error is because of disk space is full and there is not enough disk space to execute and perform operations of MySQL queries. Troubleshoot Error 28 from Storage Engine Step 1: Check disk space...

Read More

Differences between sendRedirect and forward Method Execution Flow

Response.sendRedirect() and RequestDispatcher.forward() are the 2 main methods provided by java to pass the execution to next resource. In this post, I am going to discuss major differences between response.sendRedirect() and request.getRequestDispatcher().forward(req, res) method’s execution flow. Next to that, I want to explain When to use sendRedirect() and when to use forward()? Differences between sendRedirect() and forward() sendRedirect() forward() HTTPServletResponse Interface defines SendRedirect(). RequestDispatcher Interface defines Forward(). SendRedirect tells the browser to load redirected URL. Browser creates new request to load redirected URL. Forward passes the control of current request to next resource (e.g. servlet or jsp page) on...

Read More

Sublime Text 3 Plugins, Tips, and Settings

Sublime Text 3 is one of the most light weight text editor which supports almost all programming languages. There are some Sublime Text 3 Plugins, Tips, and Settings to boost development productivity. Sublime Text has a lots of packages to improve development productivity. Sublime Text Package Control is an official place to find all sublime text packages. Sublime Text 3 Package Manager You can install sublime text package manager to manage packages into sublime text. Go to  Sublime Text Package Control and copy the package control installation code. Open Sublime Text console by Ctrl + ` or view -> Show Console;...

Read More

Toggle Radio Button using jQuery

Radio buttons are not built to toggle on and off. You can toggle radio button using jQuery with the help of HTML5 Data Attribute. It is very easy to store previous value of radio button and use it to toggle radio button inside the click event of radio button. $(document).ready(function() { $("input[type=radio]").click(function() { // Get the storedValue var previousValue = $(this).data('storedValue'); // if previousValue = true then // Step 1: toggle radio button check mark. // Step 2: save data-StoredValue as false to indicate radio button is unchecked. if (previousValue) { $(this).prop('checked', !previousValue); $(this).data('storedValue', !previousValue); } // If previousValue...

Read More