Js.Class Ruby style javascript

JS.Class is a library designed to facilitate object-oriented development in JavaScript. It implements Ruby’s core object, module and class system and some of its metaprogramming facilities, giving you a powerful base to build well-structured OOP.


JS.Class is designed to make JavaScript behave like Ruby in terms of its OOP structures. To this end, it provides the following features:

  1. Classes and modules with Ruby-compatible inheritance
  2. Subclassing and mixins
  3. Late-binding arguments-optional super calls to parent classes and mixins
  4. Singleton methods and eigenclasses
  5. included, extended and inherited hooks
  6. Method binding
  7. Ports of various standard Ruby modules, including Enumerable, Hash, Set, Observable, Comparable, Forwardable

Its inheritance system supports late-bound super() calls to parent classes and modules, including calls from singleton methods. It has been designed to mimick Ruby as closely as possible, so if you know Ruby you should feel right at home.

var Animal = new JS.Class({
        initialize: function(name) {
            this.name = name;
        },

        speak: function(things) {
            return 'My name is ' + this.name + ' and I like ' + things;
        }
    });

Download & example available at it’s official website

Javascript Infovis Toolkit

The JavaScript InfoVis Toolkit provides tools for creating Interactive Data Visualizations for the Web.

Features:

  • Multiple Data Representations,
    Treemaps, Radial Layouts, HyperTrees/Graphs, SpaceTree-like Layouts, and more…
  • Major Browsers Support,
    IE6+, Firefox2+, Safari3+, Opera9.5+
  • Open Source,
    Licensed under the BSD License
  • Library Agnostic,
    You may use the JIT with your favorite DOM manipulation framework
  • Extensible,
    All visualization classes are mutable, so you can easily add/override any method you want.
  • Composable,
    Visualizations can be combined in order to create new visualization methods.

Check out the demo page along with source code example

WordPress 2.8 available for download

Matt has announced the new release of wordpress 2.8 – Baker, with over 790 bugs fixed, and over 180 new features, changes, upgrades, and improvements.

The Major Improvements:

  1. WordPress style and scripting has changed which makes the new wordpress 2.8 is way faster to use.
  2. Enabled browse the entire theme directory and install a theme with one click
  3. CodePress editor gives syntax highlighting to the previously-plain editor. Also there is now contextual documentation for the functions in the file you’re editing linked right below the editor.
  4. widgets interface redesigned, also with much cleaner and robust widget API
  5. new Screen Options on every page

Ready to upgrade? grab the new wordpress 2.8 here

TinyScroller JavaScript Scrollable Div – 1.7KB

Scrollable Div

TinyScroller is a basic scrollable div script at only 1.7KB. It can be used with any HTML and degrades gracefully. The styling is completely customizable through the simple CSS. More features will be coming soon. I have redesigned leigeber.com and am going to be publishing a number of scripts and articles shortly. I will also be releasing my previous blog theme for free. A few of the upcoming scripts:

  • TinySlideshow V3 – many new features and fixes
  • TinyTable V3 – advanced search and filtering capabilities
  • TinySlider – sliding content script
  • TinyDrag – draggable box script
  • TinyBox V2 – many new features
  • TinyValidator – completely rewritten form validation
  • TinyTooltip – slick and full featured tooltip script
  • TinyEditor – lightweight JavaScript WYSIWYG editor
  • Bug fixes to all other existing scripts.

To initialize a scrollable div use the following code:

TINY.scroller.init('scroll','content','scrollbar','scroller','active')

The TINY.scroller.init function takes 5 parameters: the id of the parent content wrapper, the id of the content div, the id of the scroll div, the id of the scroll button, and the class of the scroll button active state (optional).

This script has been tested working in IE6-IE8, Firefox, Opera, Chrome, and Safari. Please send bug reports to michael@leigeber.com with the subject “BUG REPORT”. This script is available free of charge for any project, personal or commercial, under the creative commons license and is offered AS-IS, NO FREE SUPPORT provided.

Click here to view the demo.

Click here to download the script.

Flash Charts With JavaScript API – amCharts

Flash Charts

I have been working on a business intelligence application recently and did a lot of research for a Flash based library to build out dynamic charts. There are a number of players in the market, some free and some even open source. I ended up choosing a product called amCharts which seemed very flexible and the pricing was generally lower than the competition. You can download and use the charts for free with the “chart by amCharts” text in the top left corner, this comes in handy when evaluating. Being savvy with JavaScript, I liked the fact that there was a powerfully API behind the charts for data and settings manipulation. As such, there is no need for postbacks or tedious AJAX calls.

Another selling point was the ASP.NET control library they offer which made development much quicker. I also chose the developer license to get the full Flash source code for some custom modifications. One last cool feature is the chart builder at http://extra.amcharts.com/editor/ which makes visualizing the charts and generating the settings file a breeze. Charts like this can really add some “wow” factor to an application. They have an active community forum, plenty of documentation, and a helpful staff so check them out.

Click here for a quick demonstration of a dynamic pie chart inside a draggable box which should be ready for release soon. If you are interested in the demo source you can download it here. Check out their website for more demos and details.

TinyBox JavaScript Popup Box – 3.5KB

JavaScript Modal Window Script

TinyBox is a lightweight and standalone modal window script. At only 3.5KB it doesn’t include any slideshow capabilities built-in but allows for any AJAX or HTML input so the sky is the limit. Future versions will include additional features. It can also be used for images and auto hiding alerts. The popups fade in/out and dynamically size based on the content if enabled. The styling is completely customizable through the simple CSS. I have a couple tutorials and a few scripts I will be posting very soon so check back.

To display a popup box use the following code:

TINY.box.show('advanced.html',1,300,150,1,3);

There is nothing to initialize, just start using the script. The TINY.box.show function takes 6 parameters: the HTML content for the box or the relative path to the AJAX source, a toggle (true/false or 1/0) if the content is via AJAX, the width of the window (use 0 for auto), the height of the window (use 0 for auto), a toggle (true/false or 1/0) to animate the window, and the time in seconds to wait before auto hiding the popup (optional).

TinyBox has been tested in Firefox 2/3, IE 6/7/8, Opera, Safari and Chrome. Please send bug reports to michael@leigeber.com with the subject “BUG REPORT”. This script is available free of charge for any project, personal or commercial, under the creative commons license and is offered AS-IS, NO FREE SUPPORT provided. Hopefully I will have the support forum live shortly. Click here to inquire about paid support.

Click here for the demo.

Click here to download the source code.

TinyTable JavaScript Table Sorter – 2.5KB

Table Sorter

This updated table sorter script is easy to use and feature packed at only 2.5KB. New features include column highlighting, optional pagination, support for links, and date/link parsing. A few other features are alternate row highlighting, header class toggling, auto data type recognition and selective column sorting. More updates will follow soon.

To initialize a table sorter follow the pattern below:

var sorter = new TINY.table.sorter('sorter');
sorter.head = 'head'; //header class name
sorter.asc = 'asc'; //ascending header class name
sorter.desc = 'desc'; //descending header class name
sorter.even = 'evenrow'; //even row class name
sorter.odd = 'oddrow'; //odd row class name
sorter.evensel = 'evenselected'; //selected column even class
sorter.oddsel = 'oddselected'; //selected column odd class
sorter.paginate = true (false); //toggle for pagination logic
sorter.pagesize = 15 (20); //toggle for pagination logic
sorter.currentid = 'currentpage'; //current page id
sorter.limitid = 'pagelimit'; //page limit id
sorter.init('table',1);

Before initialization, a new table sorter object must be created. The parameter taken by TINY.table.sorter is the variable name used for the object. The object.init function takes 2 parameters: the id of the table and the initially sorted column index (optional). If you want to exclude a column from sorting add class=”nosort” to the appropriate table header. Table styling is completely customizable via the CSS.

TinyTable has been tested in Firefox 2/3, IE 6/7/8, Opera, Safari and Chrome. Please send bug reports to michael@leigeber.com with the subject “BUG REPORT”. This script is available free of charge any project, personal or commercial, under the creative commons license and is offered AS-IS, no free support provided. Click here to inquire about paid support.

Click here for the demo.

Click here to download the source code.

Buy Best Eyeglasses at the Best Place

Eyeglasses for some people is a primary need, it is a really important part in their life. But to be fashionable is another primary need for some people. To mix these two things is the dream of eyeglasses users. And I have found the best fashionable eyeglasses at such a low price at zennioptical.com.

At Zenni Optical you will be provided with so many fashionable eyeglasses starting from $8. Do not worry, the quality is perfect for every eyeglasses they offer. Once you visit their website you will see a lot of choice like $ 8 Rx eyeglasses and others great eyeglasses at various prices also offered there.
Do eyeglasses make you look like a nerd? If you buy the eyeglasses from Zenni Optical I guarantee that it will make you even better and more fashionable, you have to check My favorite high fashion eyeglasses at Zenni Optical. They know well about the eyeglasses, they know the quality and the design well.

I have bought a lot of fashionable eyeglasses at Zenni Optical and I think I will buy another one, because my son needs a new one, I think I will be happy to take a look at their great catalog of fashionable eyeglasses. And I have a great info for you, I have read this great article, you can read it too at “How You Can Start Spending Smart”. I hope you can take the benefit.

glass01

glass02

glass03

World Of Warcraft – The Game Of The Hour

World of warcraft is one of the most exciting game that one could play. Ever this is a game that would allow you to explore new boundaries of gaming experience. Here you would not only enjoy the game but you would also enjoy the details of characters, environment and levels of your heroes. Every hero has its own set of skills and its limits, the more the skilled player better for you. This would allow you to take on other high level heroes of players easily. The heroes can be from anyone a human, dwarf, mountaineer, night elf, taurauns, orcs, undead and many more. The type of the heroes also can be chosen such as warriors, paladins, warlock, death knight, priest, druids of claw and many more. The hero once selected then you can choose the appearance of it also. The hero would be created now and you can play the game.

The hero would be assigned some tasks or objectives that on completion would provide better levels of skills and equipments to the hero. The hero can train itself to learn several abilities and can work with another hero or player online. The player to perform all this would require a warcraft account and in order to create the warcraft account you would need to buy wow cd key. There are various types of wow cd keys which would last for certain amount of time. This is dissimilar to other games where only one cd key would allow you to play forever. This is because the game would not only bring lot of fun and joy you but also money. Yes, the accounts with better developed warcraft players would yield you better money. So, when you feel to stop playing the game, do not just delete it but sell the wow accounts to resellers. They would verify in minutes and pay you immediately.

Game cards and cd keys:

There are many types of game cards that are available and would provide you the wow cd key for specific amount of time. The most of the users opt to buy the wow cd key lasting for 60 days. These can be bought online and the wow cd key would be delivered to you email account within a matter of 30 minutes. Now for the new users you can play the game with this cd key and create your on new accounts. The old players can continue their old accounts and carry on playing. This subscription would last for 2 months and can be used by the users of that country only.

However, you would be able to buy wow cd keys for the latest version of world of warcraft game called burning crusade. This would work only if you have the game already installed on your computer. There are some game cards that would include both wow and burning crusade. When you buy wow cd keys would be delivered to you within half an hour of purchase. You would be able to download the game online also.  There are various gaming cards which are available for various countries and with different time period. So, make sure you buy wow cd key that is suitable for your requirements.

iContact – Newsletter tool and software for supporting your online business

Do you search the correct tool to maximize your promotion products and service? Or do you think for creating a newsletter system to close in feeling with your costumers and shares many update brand new products, sale and promotion event, important informations, etc.

Not easy to find useful tool with simple features to operate by computer newbie that focus with marketing and selling system. Nevertheless,  newsletter tool from iContact gives you easy set up since beginning to use it. Before you decide to buy it, you can use the trial version. And, without hesitant, this email newsletter software able to handle your marketing email on time and faster delivery.

You can also use a lot of available professional templates since you decide to use iContact as email marketing that support your online business, so targeted email marketing able to optimize well. Many features can you explore to maximize your business revenue, such as surveys or customers polling, RSS feeds until mailing list that apply for your need. With survey feature you can get a lot of information about your costumer interesting, beneficial products and services, etc. So, you can prepare to get useful products and services for them. Email marketing will be a great way to raise up your better appearance company to the customers.

Do you search the correct tool to maximize your promotion products and service? Or do you think for creating a newsletter system to close in feeling with your costumers and shares many update brand new products, sale and promotion event, important informations, etc.

Not easy to find useful tool with simple features to operate by computer newbie that focus with marketing and selling system. Nevertheless,  newsletter tool from iContact gives you easy set up since beginning to use it. Before you decide to buy it, you can use the trial version. And, without hesitant, this email newsletter software able to handle your marketing email on time and faster delivery.

You can also use a lot of available professional templates since you decide to use iContact as email marketing that support your online business, so targeted email marketing able to optimize well. Many features can you explore to maximize your business revenue, such as surveys or customers polling, RSS feeds until mailing list that apply for your need. With survey feature you can get a lot of information about your costumer interesting, beneficial products and services, etc. So, you can prepare to get useful products and services for them. Email marketing will be a great way to raise up your better appearance company to the customers.