Improve your JavaScript code.

1 Comment

Christian Heilmann compiled a list of seven rules for unobtrusive JavaScript.

I think it is a must read for beginner JavaScript developers. Even if you are a highly experienced JavaScript developer this article may give you few tips to improve. To me the most important rule is this article is the first one, “Do not make any assumptions”. I have learned this the hard way. Don’t assume that if it works in one browser the code will work just as well in all other browsers. Even more important, do not assume that every user will have JavaScript enabled. I recommend that you read the full article and try to follow the tips.

The seven rules of unobtrusive JavaScript



article clipper vert Improve your JavaScript code.
 

Display external RSS feeds on your website.

1 Comment

You have designed a beautiful website. But you still do not get a lot of loyal visitors.

The problem may not be your design, it may be the static content that is turning the visitors off. If you do not update your website regularly chances are people may not visit your website. Why would someone visits a site if it has the same content from last week or even yesterday. One way to jazz up your website is to display RSS feeds from other relevant and reputable websites. Don’t know how to incorporate the RSS feeds into your website? Well, all you need is some basic JavaScript knowledge. Probably you don’t even need that if you know how to cut & paste and can do a little bit text editing. Yes it is that easy and thanks Google for this convenience. What is once considered a tedious task Google made it super-duper easy. Google developed an AJAX based API that you can call from a JavaScript method.
The API returns the content of the RSS feed that you specify. And then you can display that content on your own webpage.

For a detailed description of the API and how to use it on your website visit JavaScriptKit.
They have some easy-to-follow examples that you can use on your website. Just change the feed URL in the JavaScript to the ones that you want to display on your website.

For official documentation and examples from Google visit Google AJAX Feed API documentation.



article clipper vert Display external RSS feeds on your website.
 

#1 Programming Language – Java

No Comments

According to TIOBE Programming Community Index Java is still the #1 programming language. TIOBE Index gives an indication of the popularity of a programming language and is updated monthly.
The ratings are calculated by counting hits of the most popular search engines.
Ruby moved up from 13th to 10th position.

Following is the list of top 10 programming languages.
1. Java
2. C
3. (Visual) Basic
4. C++
5. PHP
6. Perl
7. C#
8. Python
9. JavaScript
10. Ruby

For complete results visit TIOBE website

article clipper vert #1 Programming Language   Java
 

Dynamically loading an external JavaScript or CSS file

No Comments

A very good article explaining how to load JavaScript and CSS files asynchronously and on demand.

Dynamically loading an external JavaScript or CSS file

article clipper vert Dynamically loading an external JavaScript or CSS file
 

AJAX Contact Form

No Comments

Want to collect input from your web site’s visitors? Don’t have time or expertise to develop the contact form yourself? Don’t worry. Dustin Diaz’s AJAX based contact form is quite easy to use. You can get the code here. I fixed couple of bugs in the original script and deployed the form at my personal website.

article clipper vert AJAX Contact Form