Wednesday, August 26, 2009

Jquery API/1.3/Utilities

API/1.3/Utilities

From jQuery JavaScript Library

Jump to: navigation, search

Browser and Feature Detection:

Name

Type

jQuery.support

Returns: Object

Added in jQuery 1.3 A collection of properties that represent the presence of different browser features or bugs.

jQuery.browser

Returns: Map

Deprecated in jQuery 1.3 (see jQuery.support) Contains flags for the useragent, read from navigator.userAgent.

jQuery.browser.version

Returns: String

Deprecated in jQuery 1.3 (see jQuery.support) The version number of the rendering engine for the user's browser.

jQuery.boxModel

Returns: Boolean

Deprecated in jQuery 1.3 (see jQuery.support) States if the current page, in the user's browser, is being rendered using the W3C CSS Box Model.

Array and Object operations:

Name

Type

jQuery.each( object, callback )

Returns: Object

A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function's arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties.

jQuery.extend( deep, target, object1, objectN )

Returns: Object

Extend one object with one or more others, returning the modified object.

jQuery.grep( array, callback, invert )

Returns: Array

Finds the elements of an array which satisfy a filter function. The original array is not affected.

jQuery.makeArray( obj )

Returns: Array

Turns anything into a true array.

jQuery.map( array, callback )

Returns: Array

Translate all items in an array to another array of items.

jQuery.inArray( value, array )

Returns: Number

Determine the index of the first parameter in the Array (-1 if not found).

jQuery.merge( first, second )

Returns: Array

Merge two arrays together.

jQuery.unique( array )

Returns: Array

Remove all duplicate elements from an array of elements. Note that this only works on arrays of DOM elements, not strings or numbers.

Test operations:

Name

Type

jQuery.isArray( obj )

Returns: Boolean

Added in jQuery 1.3 Determine if the parameter passed is an array.

jQuery.isFunction( obj )

Returns: Boolean

Determine if the parameter passed is a Javascript function object.

String operations:

Name

Type

jQuery.trim( str )

Returns: String

Remove the whitespace from the beginning and end of a string.

URLs:

Name

Type

jQuery.param( obj )

Returns: String

Serializes an array of form elements or an object (core of .serialize() method).

Tuesday, August 18, 2009

Caffeine :: Google's answer to Microsoft's Bing!!!!

Its still in its beta, running at below link.

It claims to be faster than its classic ver., much accurate and subjective with new algo

http://www2.sandbox.google.com/

On 40th anniversary of apollo 11 mission

Whether that trip was actually faked or not nobody knows but this website has a real-time simulation of that entire Apollo 11 mission, divided into 11 phases with 103 hours of audio from NASA tapes. Animation really cool... check it out here at

http://www.wechoosethemoon.org/