Jaspreetchahal - jaspreetchahal.org - Jaspreet Chahal's Blog
General Information:
Latest News:
How to inject JavaScript into an iFrame 16 Nov 2012 | 09:49 am
Hello, This is not common but sometimes required because of variety of reasons. Without wasting much time into hows and whats lets jump on straight into the problem The Problem How do we inject, inclu...
HTML5 canvas export as png or jpeg 14 Nov 2012 | 04:40 am
Hello, Today we will see how we can export our canvas to an image in well known formats png jpeg I will also give you a trick to download a file the HTML5 way using the new download attribute that shi...
HTML5 draw image on cavas with example 13 Nov 2012 | 04:39 am
Hello, HTML5 canvas is such a good subject to write on and to learn. Eveyday you learn something new. Today we will find out how we can draw an image on our canvas. We can use this feature to set a ba...
HTML5 battery API 11 Nov 2012 | 10:43 am
G’day I am happy to be back from holidays from New Zealand. Very nice place to visit. Anyway this post is about HTML5 Javascript battery API. Currently only Firefox (latest) and Chrome (latest) suppor...
html5 canvas circle with gradient fill example 2 Nov 2012 | 02:19 pm
G’day, A friend asked me a question on how to do a gradient circle in HTML5 canvas. To be honest I never used gradients before so it was fun to find it how to do it. It was easy and didn’t take me to ...
HTML5 canvas learning paths a simple sketchpad example 27 Oct 2012 | 07:50 am
Hello, This is my follow up post from my previous post that you can read if you haven’t already that briefly introduced HTML5 canvas. From here on we will be covering canvas in a little bit of more de...
javascript offsetx offsetY firefox not working 26 Oct 2012 | 10:07 am
Hello, This is a very old question I suppose but I would like to address it here on my blog too. So I have my canvas as a part of my webpage and I am drawing on it. Thus I want mouseX and mouseY posit...
Prettify JSON 25 Oct 2012 | 02:28 pm
Hello, I thought I better do this today because I just wanted to have my JSON output return from my server in a readable string. This little tool will help you beautify your JSON string. This is how t...
Linux Count lines in file and Sum count 24 Oct 2012 | 08:04 am
Hi Guys, To start with I am intermediate user of Linux and use RedHat at work and Ubuntu at home. I had this job where I have to search my apache server logs for a string. Count the number of lines th...
HTML5 introduction to canvas beginner tutorial 23 Oct 2012 | 11:11 am
G’day, Following up from my previous post in which we talked about new form input types and attributes that you should know, this post is just a brief introduction to new HTML5 element called canvas i...