Archive for January, 2009

Wordpress Simple Bookmarking Plugin

This is a simple social bookmarking wordpress plug-in, which will be available as link with icon for each posts and pages to share your posts or pages among multiple social bookmarking engines such as digg, delicious, stumble, technorati and reddit etc., This is the initial beta version, more updates with new features will be coming [...]

Top 10 SEO Tips

Here are some basic seo tips to improve your site traffic.

Use fresh and unique articles for your site’s content.
Use relevant title,keywords and description for each page.
Use SEO optimized urls.
Use alt and title tags for images and anchors.
Use heading tags to optimize particular keywords.
Don’t use much javascript or css code on the page, you can [...]

Including a JavaScript File

We can include a javascript file dynamically like other languages in your javascript code. Here is the source code to include a javascript file dynamically.

<script language=”JavaScript”>

function include_js(file)

{

var include_file = document.createElement(’script’);

include_file.type = ‘text/javascript’;

include_file.src = file;

document.getElementsByTagName(’head’)[0].appendChild(include_file);

}

/* include your file */

include_js(’myscript.js’);

</script>
Here I [...]

Associative array in JavaScript

We can use associative arrays in javascript somewhat similar to PHP. Here is an example:

/* Declaring array in javascript */
var opensource = new Array();

/* assigning values to this javascript associative array */

opensource[‘cms’] = ‘Joomla’;
opensource[‘forum’] = ‘phpBB’;
opensource[‘blog’] = ‘Wordpress’;
opensource[‘os’] = ‘Linux’;
opensource[‘database’] = ‘MySQL’;
opensource[‘webserver’] = ‘Apache’;
We can navigate this array as

for(script in opensource)
{
//to get the key for [...]

Triggers in MySQL

MySQL is indeed the most powerful database management system and the reason for this lies in a number of tools integrated with it. Triggers in MySQL are the most significant methods to automate the updating of one table in the database, corresponding to any type of change brought in other table. Triggers are fastest way [...]