The area of a rectangle is the region enclosed by its all four side that is calculated by multiplying the height and width dimensions together.
Continue reading “Code snippet to calculate the area and parimeter of a rectangle in JavaScript”
You can find here the various examples and demo on the HTML5 and jQuery.
The area of a rectangle is the region enclosed by its all four side that is calculated by multiplying the height and width dimensions together.
Continue reading “Code snippet to calculate the area and parimeter of a rectangle in JavaScript”
Ui Grid is the popular grid system specially for Angular 1.x(Currently ui-grid doesn’t support angular 2 and above version). Ui-grid has no dependency rather than angular which makes it light weight. It has very rich feature set such as sorting, filtering, grouping and pagination and also has server side support for data-binding and pagination. Continue reading “Drag and drop rows within ui grid in Angular js”
HTML5 canvas provides rotate(angle) method which is used to rotate the canvas around the current origin clockwise. The parameter ‘angle’ should be radians not in degrees. You can use degree * Math.PI/180 formula to convert the degree in radians, suppose if you want to rotate canvas 45 degree you can use 45*Math.PI/180 for the angle. Continue reading “Rotate object or shape in HTML5 Canvas”
In this article I will see that how can you create a analog clock on canvas element and JavaScript in HTML5. This article also gives you a better understanding of how to draw arcs and lines on canvas in HTML5. Continue reading “Create a animated Analog clock in HTML5-Animation on canvas”
This article demonstrates how can we draw the grid lines on the HTML 5 canvas object. You can See the below demo in which you can reset the thickness and size of the grid lines from the drop down options. Continue reading “HTML 5: Draw the Grid lines on the Canvas”
Draw the Car and Move forward and backward with arrow keys Continue reading “Draw the Car and Move forward and backward with arrow keys”
Geolocation is the HTML 5 API that is used to get the location of the user. You can get the latitude and longitude of the user’s location. Continue reading “Starting with geolocation api in HTML 5”
The following code samples demonstrate how can you change the text of the existing controls at client side. The example change the text of a button ‘show image’ to ‘hide image’ after showing the image on the click event. You can see in the below demo: Continue reading “Change the caption of the button on click in JavaScript and jQuery”
I need to restrict certain number of input field to takes only numbers values. Basically my form is not a submit form so that i can not put the simple validation on the form submission. I want the user to be unable to enter the any other characters than numeric values. Continue reading “HTML input tag that accepts only numeric values using JavaScript”
We can use the document.location.reload() function to refresh or reload the current web page in jQuery. Continue reading “Refresh the current web page using jQuery”