Mohammed Arif Blog
  • Home
  • About Me
  • Contact
Follow

Posts tagged JavaScript

Build your first jQuery plugin

Nov7th
2008
10 Comments Written by Mohammed Arif

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.

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.

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.

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

[sourcecode language='js']
// plugin definition
$.fn.disable = function() {
// plugin implementation code goes here.
};
[/sourcecode]

Share this:

  • LinkedIn
  • Facebook
  • Twitter
  • Google +1
  • Email
READ MORE »
Technology, Web 2.0    jquery, plugin, plugin development

JavaScript outside the browser

Jul21st
2008
Leave a Comment Written by Mohammed Arif

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 [...]

Share this:

  • LinkedIn
  • Facebook
  • Twitter
  • Google +1
  • Email
READ MORE »
Web 2.0, Web Browsers    Browser, Helma, Rhino, SpiderMonkey

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

Jun10th
2008
1 Comment Written by Mohammed Arif

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 [...]

Share this:

  • LinkedIn
  • Facebook
  • Twitter
  • Google +1
  • Email
READ MORE »
Namespaces, Object Literal, Singleton Design Pattern

Categories

  • AJAX (2)
  • Blogging (1)
  • General (4)
  • Mobile (1)
  • RIA (2)
  • Social Media (1)
  • Technology (5)
  • User Experience (1)
  • Web 2.0 (6)
  • Web Browsers (5)
  • Web Standards (9)
    • (X)HTML (3)
    • CSS (3)
    • JavaScript (7)

Tweets

  • The Hikikomori's Guide to JavaScript — Sorella's Basement goo.gl/cMJ31 #vox 1 day ago
  • Author In ES6, Transpile To ES5 As A Build-step: A Workflow For Grunt goo.gl/kgED2 #vox 1 day ago
  • RequireJS Fundamentals goo.gl/eT7e2 #vox 2 days ago
  • Use ECMAScript 6 Today | Nettuts+ goo.gl/06d5V #vox 2 days ago
  • HTML Media Capture Spec Becomes W3C Candidate Recommendation goo.gl/3eh43 #vox 2 days ago

Tag Cloud

AJAX Blog Blogging Browser Bugs Chrome Comic Book CSS 2.1 DOM Interface Facebook Connect Facebook Like Firefox Flock Google Helma HTML5 IE7 iPhone iPhone 3G iPhone 4 iPhone 4G JavaScript jquery Mozilla Namespaces Object Literal Peter Paul Koch plugin plugin development Rhino Singleton Design Pattern SpiderMonkey TypePad TypePad vs. WordPress web Web Browsers Web Standards WordPress Working Draft XHTML 1.0 YouTube JavaScript API

Archives

  • June 2012 (1)
  • November 2010 (1)
  • June 2010 (1)
  • September 2009 (1)
  • November 2008 (1)
  • September 2008 (3)
  • July 2008 (1)
  • June 2008 (1)
  • July 2007 (1)
  • June 2007 (2)
  • August 2006 (1)

Blogroll

  • Addy Osmani
  • Dean Edwards
  • Douglas Crockford
  • Dustin Diaz
  • Jeffrey Zeldman
  • Jeremy Keith
  • John Resig
  • Julien Lecomte
  • Paul Irish
  • Peter-Paul Koch
  • Roger Johansson
  • Simon Willison

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

EvoLve theme by Theme4Press  •  Powered by WordPress Mohammed Arif Blog

Back to Top
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.