Adnan’s Blog

Archive for the ‘General’ Category

Here’s a small javascript helper to read Url Query String Parameters.

function GetUrlParams()
          var vars = [], hash;
           var hashes = window.location.href.slice(window.location.href.indexOf(‘?’) + 1).split(‘&’);

        for(var i = 0; i < hashes.length; i++)
                hash = hashes[i].split(‘=’);
                vars[hash[0]] = hash[1];
        return vars;

The above function, will read the url, get the query string part i.e from (“?”) and split each paramter by the (“=”) character and create a name value pair allowing us to access the param value using the param name.


For example, if we are have a test.htm in and the url is :

To access the param values we can use something like :

var params = GetUrlParams();



I needed to integrate support for vCalendar in my current project. So i went through the vCalendar spec 1.0 at and wrote this class. Although I have not implemented all the specification features, but this should prove sufficient for the usual requirements. If you have any comments / suggestions , let me know.

Read the rest of this entry »

Tags: ,

Being a Web Developer, I don’t know whether to rejoice the addition of another browser or not? With all the hype of IE 8 ; Cross-Browser compatibility and now this, life sure is chaotic.

I am not going to blog about the new features of Google Chrome (We already have tons of them). It’s been analyzed that Chrome has been optimized for Google Applications and Services. Is that a bad thing??? Frankly, i don’t think so, cos admit it or not, every netizen is dependent on them. But i do welcome the Process-Thread architecture in Chrome, cos i had the same problem in both IE and Firefox.

We can all expect great things from Google, lets hope its the same with Chrome. Good luck to the development and Congrats on the Beta release.

7 really awesome things about Google Chrome :

Google Chrome Introduction (Comic Book) :


I was designing a template for a web application and i wanted to try out something new. The user interface revolves around a compatible set of layout, colors, images and fonts. So i was Googling for a tool to help me compare Fonts and thier web compatibility. I came across a great tool called Typetester. Typetester allows you to customize and compare upto 3 fonts side by side in all variants including bold, italic, uppercase, etc simultaneously.

If you want to try it out yourself, visit


Prestashop is a welcome addition to the list Open source e-commerce solutions. The solution is completely configured with two sections, the front end; which deals with the online store’s user interface and the back end; which provides various tools to configure products, categories and other usual product related stuff. What sets Prestashop apart is its robustness and ease of use, making it very simple to install and configure. The upcoming versions plan on supporting Google Checkout, downloadable pdf catalogs and much more. Check it out…

Open Source e-Commerce Solution

Open Source e-Commerce Solution