Ajax Updates

Ajax Updates


10 Awful Animations with JavaScript Framework

Posted: 22 Aug 2009 09:13 AM PDT

Complex and slick JavaScript-based animation has been made easier with the emergence of frameworks and libraries that give developers the ability to create stunning and eye-grabbing animation and transition effects that make it easy these complex tasks.

In this article, you will read about the top 10 JavaScript-based animation frameworks and libraries that will enable you to create engaging and captivating user experiences.

1. $fx

$fx



$fx is a compact and lightweight JavaScript animation library which extends native JavaScript DOM methods with its own animation methods and functions. Its small file size (weighing in at only 3.7 KB), hassle-free implementation, and low learning curve makes $fx a powerful option for adding eye-popping animation effects to your web projects. Check out the Examples section on the Manuals page to see the library in action.

2. jsAnim

jsAnim

Created by web developer Kevin Dolan, jsAnim is a JavaScript animation framework for creating high-impact and slick animation sequences for web interfaces. Crafted with standards and best practices in mind, jsAnim allows you to create stunning animation effects without sacrificing web accessibility of your web projects.

3. scripty2

02 03 scripty2 10 Awful Animations with JavaScript Framework

scripty2 is a flexible and lightweight JavaScript animation framework for developing delicious visual effects. The project is still young (alpha), but you can already see its impressive capabilities in the scripty2 demo page which shows examples that rival Flash-based objects in smooth, seamless, and complex animations.

4. GX

GX

GX, developed by Italian web developer Riccardo Degni, is a compact (10KB uncompressed animation effects library that puts strict web standards and best practices at the forefront of its development philosophy. Built on top of jQuery, but heavily influenced by MooTools development patterns, you can customize your GX download to include only the parts you need, making your scripts optimized for file size. Check out the GX Demos to see its capabilities.

5. Glimmer

Glimmer

Glimmer is a framework for easily creating interactive elements on your web pages. Glimmer comes with wizards GUIs, reducing your coding requirements and guaranteeing standardization across your projects. Check out the Image-Sequencer demo to see Glimmer's animation capabilities. It's written on top of the popular jQuery library.

6. Animator.js

Animator.js

Animator.js is a class-based way for implementing JavaScript-based animation effects. Its design and development principles follow OOAD, which promotes maintainable and high-lifetime development of applications. Thus, it syntax is prototypal and object-oriented, reminiscent of MooTools and Prototype.js syntax.

7. Scriptio

Scriptio

Scriptio is an open source framework for animation and presentational elements to enhance and enrich the learner's web experience. Scriptio is easy to learn and its terse syntax makes it great for fast prototyping. View the Scriptio Examples page where you will find eight cool demos that exemplify this framework's abilities.

8. Processing.js

Processing.js

Processing.js is a fully featured framework for scripting images, animation, and interaction developed by jQuery library creator, John Resig. Processing.js is a JavaScript port of the open source Processing project. You should check out the Exhibits page to see full-production implementations of Processing.js.

9. Run

Run

For developers looking for a simple means of animating content, Run, a universal JavaScript animation framework, is the definitive way to go. Run emphasizes on ease-of-use as shown by its intuitive syntax and copious amounts of documentation. Run has also been tested on a wide array of web browsers, ensuring utmost cross-browser compatibility. Head over to Run's Example page to see the project in action.

10. Burst Engine

Burst Engine

Burst Engine is an open source vector animation framework for HTML 5's Canvas element. Burst provides smooth, slick, and complex animations that will surely leave a memorable impression upon viewers. To see Burst in action, check out the 3D Engine demo (and prepare to get very impressed).
tafbutton blue16 10 Awful Animations with JavaScript Framework

Related Listings:

  1. Prototype – Javascript Framework Prototype is a JavaScript Framework that aims to ease development...
  2. Blueprint – A css framework Blueprint is a CSS framework, which aims to cut down...
  3. ZK Mobile Framework Script ZK is the most proven Ajax + Mobile framework designed...

M2MSelector Script

Posted: 22 Aug 2009 08:46 AM PDT

I use a control set like the one shown below all the time on the administrative side of Content Management Systems that I build. Folks with a database background will recognize this as a many-to-many relationship control.

This example is from an Edit User form. All the available Roles appear in a select list on the right and the Roles assigned to this particular User appear in a select list on the left. The buttons in the middle transfer selections back and forth between the two lists. As a bonus, double-clicking an item toggles an item.

When the form is submitted, the items in the left select list are used to update the userRole relationship table in the database.

Extensions

I’ve developed several extensions to this control for different purposes. The most common extension is to allow ordering of the selected items. An image of the control is shown below for selecting Artists who contributed to a particular Artwork. In this case, the Artist names need to be ordered…. not necessarily alphabetically. I’ve also used this extension for images (select some thumbnails and set their order in a slideshow), filters in a report writer and so on.

Another useful extension that I’ve added is a filter for the select list on the right. If the list of items is long (say, a list of countries), then it’s handy to have a filter-as-you-type feature to help you find what you’re looking for. Typing ‘Ca’ reduces the list to ‘Canada,’ ‘Cambodia,’ etc.
M2MSelector2 M2MSelector Script

Yet another common extension for really long lists is an AJAX connection for the select list on the right. An AJAX control that loads the select list with employees by the first letter of their last name is a good example.

These extensions can be combined – select a letter of the alphabet to load the list, then type ‘Sm’ in the filter to easily find all the ‘Smith’ and ‘Smythe’ employees.

I’ve even connected mutiple sets of these controls in a cascade. Selecting items in control #1 triggers an AJAX request which repopulates the select list for control #2… and so forth. For example, an Exhibition may contain Artworks from several Artists. To create a slideshow for the Exhibition, we first select the Artists, then the Artworks by those Artists and, finally, some of the Images of those Artworks.

Needless to say, the user interface starts to get very cluttered with buttons and the complexity of the control code rises dramatically with each extension. Building, customizing and debugging these controls takes up a lot of my time. Soooo…

I’m bulding a Mootools Class to encapsulate much of the complexity… and make the user experience nicer too.
The Plan

I want a Mootools control that gets embedded in a form something like this:

 Javascript |  copy code |? 
01
<script type="text/javascript"> 
02
//< ![CDATA[ 
03
	var u = new M2MSelector( 
04
	{ 
05
		'container':'testM2M', 
06
		'options': 
07
			{ 
08
				'filter': true, 
09
				'sortOn': 'text' 
10
			}, 
11
		'items': 
12
			[ 
13
				{key:'AB', value:'Alberta', 'selected':false}, 
14
				{key:'BC', value:'British Columbia', 'selected':true}, 
15
				{key:'MB', value:'Manitoba', 'selected':true}, 
16
				{key:'NB', value:'New Brunswick', 'selected':false}, 
17
				{key:'NL', value:'Newfoundland and Labrador', 'selected':false}, 
18
				{key:'NT', value:'Northwest Territories', 'selected':false}, 
19
				{key:'NS', value:'Nova Scotia', 'selected':false}, 
20
				{key:'NU', value:'Nunavut', 'selected':false}, 
21
				{key:'ON', value:'Ontario', 'selected':false}, 
22
				{key:'PE', value:'Prince Edward Island', 'selected':false}, 
23
				{key:'QC', value:'Quebec', 'selected':false}, 
24
				{key:'SK', value:'Saskatchewan', 'selected':false}, 
25
				{key:'YT', value:'Yukon Territory', 'selected':true} 
26
			] 
27
	}); 
28
//]]> 
29
</script> 
30

Notes:

* The 'items' are pretty straight forward key:value pairs, 'selected' determines which list teh item initially appears in
* Items are un-selected by dragging them out of the left select list.
* Items are sorted using drag-and-drop within the left select list (like a Mootools Sortable).
* The values can be arbitrary HTML fragments to allow selection of thumbnail images, paragraphs of text or whatever. Allowing arbitrary HTML makes filtering a bit more complicated... that's what onFilter is for... I'm still thinking about how this might actually work.

Here's where I am at so far (view the source to see the CSS, JS and HTML)...
Try it out:

* drag items from left to right and back again
* double-click items
* sort the 'selected' items
* type in the filter
* the blue arrows transfer all items

Demo: http://www.saturnasoftware.com/index.php/home/M2MSelector
Download: Java http://saturnasoftware.com/system/application/javascript/M2M.js
CSS: http://saturnasoftware.com/system/application/css/M2M.css
Source: http://www.saturnasoftware.com/index.php/home/M2MSelector
tafbutton blue16 M2MSelector Script

Related Listings:

  1. Ajax Suggestions Script JAX Suggestions is pretty much what you might have seen...
  2. New Suggest Script with jQuery a new version of jquery.suggest. Some new features include:Features: *...
  3. Checkbox filters with jQuery Script Perhaps I’m using delicious.com wrong, but sometimes I wish I...

Expander Plugin with Jquery

Posted: 22 Aug 2009 08:27 AM PDT

The Expander Plugin is a simple little jQuery plugin to hide/collapse a portion of an element’s text and add a “read more” link so that the text can be viewed by the user if he or she wishes. By default, the expanded text is followed by a “re-collapse” link. Expanded text can also be re-collapsed at a specified time.

Usage:
Add HTML markup to your page for elements that you want to be expandable. For example:

 HTML |  copy code |? 
01
 <div class="expandable"> 
02
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor 
03
     incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud  
04
     exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor. 
05
    </p> 
06
    <p>Reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.  
07
    Excepteur sint occaecat cupidatat non proident, sunt in culpa qui  
08
    officia deserunt mollit anim id est laborum. 
09
    </p> 
10
  </div> 
11

Include the jQuery core file and the Expander plugin in the of your document. After these scripts are referenced, you can reference a custom script file to modify the expandable elements (preferred) or enter the script directly in the (shown below).




 Javascript |  copy code |? 
01
<script type="text/javascript"> 
02
$(document).ready(function() { 
03
 
04
  // simple example, using all default options 
05
  $('div.expandable p').expander(); 
06
 
07
  // *** OR *** 
08
 
09
  // override some default options 
10
  $('div.expandable p').expander({ 
11
    slicePoint:       80,  // default is 100 
12
    expandText:         '[...]', // default is 'read more...' 
13
    collapseTimer:    5000, // re-collapses after 5 seconds; default is 0, so no re-collapsing 
14
    userCollapseText: '[^]'  // default is '[collapse expanded text]' 
15
  }); 
16
 
17
}); 
18
</script>


Demo: http://plugins.learningjquery.com/expander/demo/index.html
Download: http://plugins.learningjquery.com/expander/jquery.expander.js
Source: http://plugins.learningjquery.com/expander/index.html#getting-started
tafbutton blue16 Expander Plugin with Jquery

Related Listings:

  1. Metadata : jQuery Plugin This plugin is capable of extracting metadata from classes, random...
  2. Expandable Table Rows using jQuery This page lists some tips, tricks, and code samples for...
  3. ColumnHover JQuery Plugin Script A jQuery-plugin that highlights whole columns in a table when...

ScrollShow Plugin with Jquery

Posted: 22 Aug 2009 08:11 AM PDT

It’s very small and offers high customizability,
can be used for slideshows, site navigation, news
tickers, etc. (These 3 exemplified in the demo).

jQuery.ScrollShow is a very customizable slideshow, that relies on jQuery.ScrollTo, to slide(scroll) the items. Documentation is included in the source file. The plugin is still in beta stage, but will be soon (hopefully) stable. Feedback and bug reports are very welcome.


Demo: http://demos.flesler.com/jquery/scrollShow/
Download: http://flesler.blogspot.com/search/label/jQuery.ScrollShow
Source: http://flesler.blogspot.com/search/label/jQuery.ScrollShow
tafbutton blue16 ScrollShow Plugin with Jquery

Related Listings:

  1. jQuery Bubbles Script This plugin adds bubbling functionality to jQuery. The code is...
  2. Accessible with Jquery * This plugin aims to be a collection of...
  3. jQuery.LocalScroll This plugin will animate a regular anchor navigation [1] [2].It...

Ajax Preload with Jquery

Posted: 22 Aug 2009 07:57 AM PDT

This is an advanced multi-functional preloader, that has 4 modes integrated. Each mode suits a different, common situation.

Modes and settings
The modes are:

* URL
Preload a JS array of static URLs.

o base: This string is prepended to the URLs.
o ext: This string is appended to the end of each URL in the array.
* Rollover
Preload based on DOM images, slightly modifying their src. Can be used for rollovers, or for image-thumb.

o find: String or regex that matches part of the srcs.
o replace: Replacement to the matched part, to generate the alternate URL.
* Placeholder
Take regular images and set a placeholder image while they load. Show each original image when fully loaded. Allows sequential loading with a threshold.

o placeholder: URL of the temporal image shown while loading.
o notFound: Optional image to show if a given image failed to load.
* Link
Preload images that appear in the href matched links.


There’s also a threshold setting, that determines how many images are preloaded simultaneously, it is 2 by default.

Placeholder+Rollover Mode
Since 1.0.6, you can combine these 2 modes, for another common use.
If you have many images in a page, you might want to load a lighter version of them first, and then sequentially load and replace the real images.
To achieve this, use the light versions in the html, then preload the heavy ones as if they were rollover images(find+replace).
If you set ‘placeholder’ to true, each preloaded image will be set instead once it loads.

Callbacks
The hash of settings can also contain callback functions for 3 important moments of the preloading proccess.
They receive a hash of data, with information about the related image and the overall process.
The callbacks are:

* onRequest
Called when requesting a new image.
* onComplete
Called when a request is complete.
* onFinish
Called when all images are fully preloaded.

Hash of data for the callbacks
The first argument of the callbacks will be a hash.
It contains the following information:

* loaded
how many images were preloaded successfully.
* failed
how many images failed the preloading.
*
next
0-based index of the next image to preload.
*
index
0-based index of the current image.
*
done
amount of preloaded images ( loaded + failed ).
*
found
whether the last image could be preloaded or not.
*
total
amount of images to preload overall.
*
image
URL of the related image.
*
original
The original source related to this image.


Troubleshooting

IE throws a “stack overflow” error.

I worked around this limitation of IE on 1.0.6.
If you still get this alert, you’ll need to modify $.preload.gap, which is 14 by default. Reduce this number by 1 until it works. You need to exit the site each time, to be sure it works.
Try not to touch the original code, modify it from the outside.
I have many images and they seem to get un-cached

Try setting the option ‘enforceCache’ to true (+1.0.8).


Demo: http://demos.flesler.com/jquery/preload/
Download: http://flesler-plugins.googlecode.com/files/jquery.preload-1.0.8.zip
Source: http://plugins.jquery.com/project/Preload
tafbutton blue16 Ajax Preload with Jquery

Related Listings:

  1. Preload With Ajax and Json Web applications have made huge leaps and bounds in improving...
  2. Zoomimage- Jquery Script Present you images in stylish way. The links are unobtrusively...
  3. Lazy Load -jQuery plugin Lazy loader is a jQuery plugin written in JavaScript. It...

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.