Here are some HTML 5 Canvas snippets that would give you an idea on graphics in canvas. Circle show code function drawcircle() { //circle var ctx = GEBI(‘canvas1′).getContext("2d"); ctx.strokeStyle = "#AA0000"; ctx.lineWidth = 5; ctx.beginPath(); ctx.arc(65, 65, 50, 0, Math.PI*2, true); ctx.closePath(); ctx.stroke(); } Rectangle show code function drawRectangle() { //rectangle var ctx = GEBI(‘canvas2′).getContext("2d"); [...]
Well, when you have to render graphics on your web page you might be using Flash or some raw images. With HTML 5 all such hard stuff is not necessary instead you are allowed to use Canvas and SVG to render graphics on the webpages. The best to time to decide what to be used [...]
Hi, this is Rama krishna chunduri again. As We all Know that RegEx (Regular Expressions) is Leading Validation Technique Used in Many of Web,RUI.. application development, I just Like to provide a brief on it. Here it follows Regular Expression Will match… txt The string “txt” ^txt “txt” at the start of a string txt$ [...]
Today i was looking for an online javascript validator in order to validate RJSLIB. Finally i found one at http://www.jslint.com/. I found only one repeated issue with == saying expected ===. Let me clarify the difference between == and === for you. == is an equal operator which will return true when both operands are [...]
Sometimes U might have to post many articles at the same time whose content differs but the layout is same in my sight i just has to post many articles that has content in html table however the employee names and roles differ in each article . html is like Employ Name : Rama Krishna [...]
As a web developer i prefer following add-ons which are more productive for web development 1. FireBug Allows you to manipulate various Web Development Entities Like CSS , JavaScript , HTML , etc 2. FireFTP 1. Working in live server directly . u might be using an IDE , Browser and a FTP Client that [...]
You might have observed in many sites that they ask user for confirmation upon closing the browser . Ex : In gmail while you are composing an email if you closed browser tab or window, it will ask for confirmation. We can implement same in our website by following the below listed steps. Create 2 [...]
Some times we might be using javascript to manage the style properties dynamically. For example we may use a div to be positioned in center of screen to display a message,for that we’ll use a javascript to set the top and left of the div to center as needed usually like <html> <head> <script> function [...]
Are U Unable to Set Float to an element from the javascript? U can’t set float to an element by javascript by assigning style.float to left/right/center U can Do it ! I would let u know that DOM will constitute the Definitions of the Functionalities and attributes for CSS this is because of the thing [...]
I was having trouble with setting a background image for an input button in IE. The background-image property that worked in Firefox 2.0 just did not have any effect on IE. After a bit of googling, I found that the background-image property will not work on IE and we need to use the background property. [...]


