background preloader

Jquery

Facebook Twitter

Webdesign

Tutorials. Calendar. For Technology and Programming: jQuery Sample: Collapsible List. Jgrowl. Better Coda Slider. 10 Transition Effects: The art of Showing/Hiding Content | DevSn. Delivering informative structure is the primary task an interactive user interface should be able to cope with. The more intuitive layout structure is designed, the better users can understand the content.

Whatever content you have to present, you can present them in a more interactive & more responsive ways. In this article we’d like to present 10 smart javascript techniques for showing and hiding content using different JS libraries. 1. Simple Toggle with CSS & jQuery A simple toggle tutorial with an explanation of how to switch the “open” and “close” graphic state. <h2 class="trigger"><a href="#">Toggle Header</a></h2><div class="toggle_container"><div class="block"><h3>Content Header</h3><! 2. jquery-fade-infade-out A nice fade in fade out effect you can add to your website. $(document).ready(function(){ $("ELEMENT HERE").fadeTo("slow", 0.3); $("ELEMENT HERE").hover(function(){ $(this).fadeTo("slow", 1.0); },function(){ $(this).fadeTo("slow", 0.3); }); }); 3. 4. 5. jQuery pageSlide 6. 7. 6 Interesting online presentations for web developers.

45+ New jQuery Techniques For Good User Experience | Developer&# jQuery Tutorials for Designers. jQuery is a great library for animation and Ajax calls. As with any JavaScript library there are different objects and name spaces to learn. Well, over at Web Designer Wall they have put together a good tutorial about using jQuery. The tutorial is written from a designers stand point, but even an experienced hard-core web programmer can find this tutorial useful.

Below is an excerpt from the post: How jQuery works? First you need to download a copy of jQuery and insert it in your html page (preferably within the <head> tag). Then you need to write functions to tell jQuery what to do. How to get the element? Writing jQuery function is relatively easy (thanks to the wonderful documentation). $("#header") = get the element with id="header"$("h3") = get all <h3>element$("div#content .photo") = get all element with class="photo" nested in the <div id="content">$("ul li") = get all <li> element nested in all <ul>$("ul li:first") = get only the first <li> element of the <ul> 1. 2. 4a. 4b. Interactive jQuery selector tester. jQuery 1.1.2 API Browser. Load a remote page using an HTTP request. This is jQuery's low-level AJAX implementation. See $.get, $.post etc. for higher-level abstractions that are often easier to understand and use, but don't offer as much functionality (such as error callbacks). $.ajax() returns the XMLHttpRequest that it creates.

In most cases you won't need that object to manipulate directly, but it is available if you need to abort the request manually. '''Note:''' If you specify the dataType option described below, make sure the server sends the correct MIME type in the response (eg. xml as "text/xml"). Sending the wrong MIME type can lead to unexpected problems in your script. Supported datatypes are (see dataType option): "xml": Returns a XML document that can be processed via jQuery.

"html": Returns HTML as plain text, included script tags are evaluated. "script": Evaluates the response as Javascript and returns it as plain text. "json": Evaluates the response as JSON and returns a Javascript Object. jQuery for JavaScript programmers. When jQuery came out back in January 2006, my first impression was that it was a cute hack. Basing everything around CSS selectors was a neat idea (see getElementsBySelector) but the chaining stuff looked like a bit of a gimmick and the library as a whole didn't look like it would cover all of the bases. I wrote jQuery off as a passing fad. Over the past few months it's become clear to me exactly how wrong I was. jQuery is an exceptionally clever piece of engineering.

It neatly encapsulates an extraordinary range of common functionality, and provides a clever plugin API for any functionality not included by default. Most introductions to jQuery focus on designers and inexperienced developers. Namespacing The key to writing good, reusable JavaScript is to zealously manage your namespace. jQuery introduces just one symbol to the global namespace: the jQuery function/object. What about language enhancements? The infamous $ function Selecting some elements jQuery('div.panel') jQuery('p#intro')

Visual jQuery 1.1. API/1.1.2/Events - jQuery JavaScript Library. Attach a handler to an event for the elements. Bind an event handler to the “blur” JavaScript event, or trigger that event on an element. Bind an event handler to the “change” JavaScript event, or trigger that event on an element. Bind an event handler to the “click” JavaScript event, or trigger that event on an element. Bind an event handler to the “dblclick” JavaScript event, or trigger that event on an element. Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements. Remove event handlers previously attached using .live() from the elements. Bind an event handler to the “error” JavaScript event. The current DOM element within the event bubbling phase. An optional object of data passed to an event method when the current executing handler is bound. The element where the currently-called jQuery event handler was attached.

Returns whether event.preventDefault() was ever called on this event object. jQuery: The Write Less, Do More, JavaScript Library. API/1.1.2/Core - jQuery JavaScript Library.