Just updated to WordPress 2.8.4 from 2.6

As and when I see the source code of the blog, it makes me feel bit older, showing WordPress version 2.6.2 only.

Saw that line saying “WordPress 2.8.4 is available! Please update now.” I did the same last night and now my blog looks younger then before.

Really like the new features:

  • Drag-and-drop widgets admin interface
  • Syntax highlighting and function lookup built into plugin and theme editors
  • Allow the dashboard widgets to be arranged in up to four columns
  • Support timezones and automatic daylight savings time adjustment
  • JS script loader Improvements
  • New Widgets API
  • Menu reordering via plugin

There are other features too, you can find all at http://codex.wordpress.org/Version_2.8

Share and Enjoy:
  • Twitter
  • Facebook
  • del.icio.us
  • Print this article!
  • Live
  • Digg
  • Sphinn
  • Mixx
  • Google Bookmarks
  • DZone
  • MySpace
  • Reddit
  • StumbleUpon
  • Technorati
  • Yahoo! Bookmarks
  • RSS
Just updated to WordPress 2.8.4 from 2.6

Build your first jQuery plugin

Introduction
First and far most, we should say thanks to John Resig and his team to make our life so easier then before by making jQuery, most demanding and powerful JavaScript framework and it’s expanding phenomenally that gives the proof of dominancy of jQuery framework.

Why jQuery
So why do I need to extend jQuery?

Here we go; no library is full filling all the requirements so does jQuery, so there should be some mechanism to add sets of useful methods called as plugins for your specific requirement, which we can say in the basic terminology calling your external methods into your structure but it doesn’t give you the power of leverage existing code base.

Let’s say, by creating a new jQuery commands, we automatically inherit the use of powerful selector mechanism and can use all the jQuery methods and indeed it’s a good practice to make reusable code.

There is a pretty good documentation and guidelines available on jQuery Plugins/Authoring page.

Step1

Let’s start making our first jQuery plugin; we call our plugin as “disable”, we make our plugin to disable the form elements and then we will extend our default options using $.extend utility method to enable the required once and will add a toggle method also.

We will follow the guidelines as provided on jQuery.com so we will save our plugin as jquery.disable.js

// plugin definition
$.fn.disable = function() {
 	// plugin implementation code goes here.
};

$.fn.disable means that we are extending the $ wrapper with a function called disable.

Step2
Let’s wrap into self executed anonymous function and will pass out jQuery alias in the parentheses, why it so, it’s because of author may have used $.noConflict() after using this technique there will not be any conflict between other library.

(function($) {
	$.fn.disable = function(){
	// plugin implementation code goes here.
})(jQuery)

Now we extend our default options because we will be using the same method to enable the disabled once.

Our plugin invoke code goes like this with native jquery framework and plugin call:

< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Extending jQuery</title>
<script type="text/javascript" src="jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="jquery.disable.js"></script>
<script type="text/javascript">
$(function(){
	$("input[type=text]").disable();
});
</script>
</head>

We are using attribute filter here, which will find out all input elements with a type of text on the page and then it will disable all the input elements.

Step3
So far so good; you can further look into http://www.learningjquery.com/2007/10/a-plugin-development-pattern which gives more insight about plugin development.

(function($) {
	$.fn.disable = function(options){
	// plugin defaults
	var defaults = {
		disabled: true
	};
	// Extend our default options with those provided.
	var opts = $.extend({}, defaults, options);
		return this.each(function(){

		})
})(jQuery)

$.extend() extend one object with one or more others, returning the original, modified, object. This is a great utility for simple inheritance.

Then the each() method is called to iterate over each element in the wrapped collection and return the same, inside that function, this is the collection of wrapped DOM elements that needs to be operated upon.

There is a pretty good reference on http://www.visualjquery.com/ about all the jQuery API reference in a nice format compare to http://docs.jquery.com/
Step4
Now we are pretty close to it.

(function($) {
	$.fn.disable = function(options){
	// plugin defaults
	var defaults = {
		disabled: true
	};
	// Extend our default options with those provided.
	var opts = $.extend({}, defaults, options);
		return this.each(function(){
			if(typeof this.disabled != 'undefined')
				this.disabled = true;
		})
	}
})(jQuery)

We just try to find out each and every html element disabled attribute, if it does exist then set it true.
Read more

Share and Enjoy:
  • Twitter
  • Facebook
  • del.icio.us
  • Print this article!
  • Live
  • Digg
  • Sphinn
  • Mixx
  • Google Bookmarks
  • DZone
  • MySpace
  • Reddit
  • StumbleUpon
  • Technorati
  • Yahoo! Bookmarks
  • RSS
Build your first jQuery plugin

FLOCK – Another browser in the market!

The Browser For The Modern Web

Flock is a social networking browser based on Mozilla Firefox; flock was founded in 2005 based in Redwood City, CA. Flock is an open source company. Flock is available for Windows, Linux, and Mac OSX in 12 languages, looks impressive on the first instance.

Flock 2.0 beta has been released on June 16, 2008, based on Firefox 3.0.

“Now our users can experience the best of both worlds with all of the performance and security improvements of Firefox 3, combined with Flock’s unique social browsing experience” as said by Shawn Hardin, CEO of Flock.

So what does social networking browser mean?

Let’s analyze the features and services of Flock; it supports web services like bookmarking, photo sharing, social networking, Read more

Share and Enjoy:
  • Twitter
  • Facebook
  • del.icio.us
  • Print this article!
  • Live
  • Digg
  • Sphinn
  • Mixx
  • Google Bookmarks
  • DZone
  • MySpace
  • Reddit
  • StumbleUpon
  • Technorati
  • Yahoo! Bookmarks
  • RSS
FLOCK – Another browser in the market!

Who is better TypePad or WordPress?

WordPress vs. TypePad

After investigating for 15 days, need to get the better blogging platform for our client who wins lastly? Guess guys!

Professionally TypePad, due to the client demand because they are not willing to spend money creating new infrastructure like setting up Apache/MySQL for WordPress on their environment.

TypePad doesn’t need all that, they host on their own, and you just need to map your domain in the last to give the pointing URL, sounds better.

There is another Six Apart product called MovableType, based on the same technology, you can configure it on your own server but comparing WordPress its bit tricky to install and relatively larger file size (4MB), MovableType is good for web developers who knows XHTML/CSS etc, MovableType supports plugins too as does WordPress. Anyway TypePad is far better then MovableType due to ease in configuration and their built in support system

TypePad:

Let’s come to the point now, it’s been a month or so using TypePad to me, getting lot more things day by day, might not be aware all the features of TypePad but Read more

Share and Enjoy:
  • Twitter
  • Facebook
  • del.icio.us
  • Print this article!
  • Live
  • Digg
  • Sphinn
  • Mixx
  • Google Bookmarks
  • DZone
  • MySpace
  • Reddit
  • StumbleUpon
  • Technorati
  • Yahoo! Bookmarks
  • RSS
Who is better TypePad or WordPress?

Google Chrome: the Google Browser

Google Chrome: the Google Browser

Google Chrome Logo

Google announced today that they will release their own browser tomorrow, code named Google Chrome. Beta version will be launched tomorrow morning only, initially available only for Windows.

Google Chrome is open source and based on WebKit, which is the same engine used by Safari and Adobe AIR. This is really good news because just the thought of yet another browser with different JavaScript and CSS engines to test every site and web app is really Read more

Share and Enjoy:
  • Twitter
  • Facebook
  • del.icio.us
  • Print this article!
  • Live
  • Digg
  • Sphinn
  • Mixx
  • Google Bookmarks
  • DZone
  • MySpace
  • Reddit
  • StumbleUpon
  • Technorati
  • Yahoo! Bookmarks
  • RSS
Google Chrome: the Google Browser

JavaScript outside the browser

http://javascript.weblogsinc.com/2006/08/06/javascript-outside-of-the-browser/

After reading the above article, questions comes in mind, why JavaScript outside the browser?

So let’s go through on some points which strongly recommend the future of “the world’s most misunderstood programming language”.

1. JavaScript will be treated as a significant programming language in the upcoming days
2. JavaScript speed and performance, of course would be increasing in the future of ECMAScript 4th edition
3. Increasing popularity of HELMA* using Rhino, it’s not as popular yet as it should be, would be hearing soon in the future about HELMA
4. Major enhancement of some JavaScript Engines like Rhino*, SpiderMonkey*
5. Popularity of Tamarin*

*Helma: It is an open source web application framework for fast and efficient scripting and serving of your websites and Internet applications.
Read more

Share and Enjoy:
  • Twitter
  • Facebook
  • del.icio.us
  • Print this article!
  • Live
  • Digg
  • Sphinn
  • Mixx
  • Google Bookmarks
  • DZone
  • MySpace
  • Reddit
  • StumbleUpon
  • Technorati
  • Yahoo! Bookmarks
  • RSS
JavaScript outside the browser

Show Love to the Object Literal | Core JavaScript 1.5 Guide:Literals

Defining an object is via literal notation. Supported in JavaScript1.2 and above, it’s a more robust form of creating an object on the fly.
Neat and clean approach to write reusable, readable and maintainable JavaScript code.

Show Love to the Object Literal:
http://ajaxian.com/archives/show-love-to-the-object-literal

Object literals beauty lies in Namespaces, which reduces the number of global variables in your pages. It uses a technique known as branching, which allows you to use common utility
functions without worrying about browser sniffing. Read more

Share and Enjoy:
  • Twitter
  • Facebook
  • del.icio.us
  • Print this article!
  • Live
  • Digg
  • Sphinn
  • Mixx
  • Google Bookmarks
  • DZone
  • MySpace
  • Reddit
  • StumbleUpon
  • Technorati
  • Yahoo! Bookmarks
  • RSS
Show Love to the Object Literal | Core JavaScript 1.5 Guide:Literals

Internet Explorer 7 and CSS 2.1 compliance

Got some interesting feedback on IE 7 on CSS 2.1 compliance though I don’t have IE 7 beta 2.0 installed at my box.

Chris Wilson, Internet Explorer 7 and CSS 2.1 compliance:

http://www.gtalbot.org/ BrowserBugsSection/ MSIE7Bugs/ CWilsonMSIE7AndCSSCompliance.html

MSIE 7 bug collection sites: Read more

Share and Enjoy:
  • Twitter
  • Facebook
  • del.icio.us
  • Print this article!
  • Live
  • Digg
  • Sphinn
  • Mixx
  • Google Bookmarks
  • DZone
  • MySpace
  • Reddit
  • StumbleUpon
  • Technorati
  • Yahoo! Bookmarks
  • RSS
Internet Explorer 7 and CSS 2.1 compliance

Working draft of HTML5

Are you ready for next gen HTML5 with DOM interface?

I am amazed even removing iframe from XHTML 1.0 “strict mode” they have included it once again in HTML5 with better control.

For the lovers of Web Forms 2.0:

Design a form that uses autocompletion (intellisense for me) like we do using AJAX (not up to that) could work in simple HTML elements.

Example:

<input type="url" name="location" list="urls"/>
<datalist id="urls">
<option label="MIME: Format of Internet Message Bodies" value="http://www.ietf.org/rfc/rfc2045">
</option><option label="HTML 4.01 Specification" value="http://www.w3.org/TR/html4/">
</option><option label="Form Controls" value="http://www.w3.org/TR/xforms/slice8.html#ui-commonelems-hint">
</option><option label="Scalable Vector Graphics (SVG) 1.1 Specification" value="http://www.w3.org/TR/SVG/">
</option><option label="Feature Sets - SVG 1.1 - 20030114" value="http://www.w3.org/TR/SVG/feature.html">
</option><option label="The Single UNIX Specification, Version 3" value="http://www.unix-systems.org/version3/">
</option></datalist>

…if user type ‘www.w3′, and UA* had found that it’s already had visited http://www.w3.org/Consortium/#membership and http://www.w3.org/TR/XForms/ in the recent.

There are many more, surly you will love it as I am.

Share and Enjoy:
  • Twitter
  • Facebook
  • del.icio.us
  • Print this article!
  • Live
  • Digg
  • Sphinn
  • Mixx
  • Google Bookmarks
  • DZone
  • MySpace
  • Reddit
  • StumbleUpon
  • Technorati
  • Yahoo! Bookmarks
  • RSS
Working draft of HTML5

What are Web Standards?

The term web standards can mean different things to different people. For some, it is ‘table-free sites’, for others it is ‘using valid code’. However, web standards are much broader than that. A site built to web standards should adhere to standards (HTML, XHTML, XML, CSS, XSLT, DOM, MathML, SVG etc.) and pursue best practices (valid code, accessible code, semantically correct code, user-friendly URLs etc.).

In other words, a site built to web standards should ideally be lean, clean, CSS-based, accessible, usable and search engine friendly. Read more

Share and Enjoy:
  • Twitter
  • Facebook
  • del.icio.us
  • Print this article!
  • Live
  • Digg
  • Sphinn
  • Mixx
  • Google Bookmarks
  • DZone
  • MySpace
  • Reddit
  • StumbleUpon
  • Technorati
  • Yahoo! Bookmarks
  • RSS
What are Web Standards?
Return top

INFORMATION

Change this sentence and title from admin Theme option page.