background preloader

jQuery

Facebook Twitter

Script Junkie | Introduction to Complex UIs Using jQuery UI. Building a web application with jQuery makes the task easier. Similarly, building a web application with a complex UI is made easier with jQuery’s sister project jQuery UI. With jQuery UI we have a collection of interactions, widgets and a theme builder at our fingertips that allows us to make a cohesive UI. What is jQuery UI? The jQuery UI project is an official project of the jQuery Project, that provides abstractions for low-level interactions and animations, advanced effects and high-level, themeable widgets, all built on top of the jQuery JavaScript Library, that you can use to build highly interactive web applications. There are a number of interactions within jQuery UI that allow you to build complex behaviors. The library provides support for dragging, dropping, resizing, selecting, and sorting elements on a page.

It also provides many prebuilt widgets that you can drop onto your UI with the ease of any jQuery plug-in. Let’s Build Something Login We’ll start with a login form. <! <! Free JavaScript Game Frameworks To Create A Web-Based Fun. Mif.Menu Demos. jQuery Menu: Dropdown, iPod Drilldown, and Flyout styles with ARIA Support and ThemeRoller Ready. Posted by Maggie on 04/02/2009 Topics: css jQuery jQuery UI ThemeRoller ui design Update: We contributed this menu plugin to the jQuery UI library. We got lots of fantastic feedback on our earlier iPod-style menu, and decided to upgrade it for jQuery 1.3. As noted in our original post, the iPod-style menu provides easy navigation of complex nested structures with any number of levels. Much of the functionality that controls the iPod style menu, like positioning and option selection, is shared by dropdown and flyout menus which are better suited for smaller data sets, so we extended the script to include support for these additional menu types.

We also built in the ability to customize a menu's appearance, including active and hover states, by passing in classes as options. By default, the menu script will transform an unordered list of links into a simple dropdown menu: Demo Page When the menu content contains nested lists, by default it creates an iPod-style menu: Demo Page Demo Page How it works. Coda Popup Bubbles. In particular, Jorge Mesa writes to ask how to re-create their ‘puff’ popup bubble shown when you mouse over the download image. In essence the effect is just a simple combination of effect, but there’s a few nuances to be wary of. How to Solve the Problem To create the puff popup bubble effect, we need the following: Markup that assumes that JavaScript is disabled. The biggest trick to be wary of is: when you move the mouse over the popup, this triggers a mouseout on the image used to trigger the popup being shown. I’ve provided a screencast to walk through how create this functionality. Watch the coda bubble screencast (alternative flash version) (QuickTime version is approx. 23Mb, flash version is streaming) View the demo and source code used in the screencast HTML Markup For the purpose of reusability, I’ve wrapped my ‘target’ and ‘popup’ in a div.

There’s very little to the minimum required CSS. The minimum I recommend for the example is: jQuery Mouse Over Mouse Out The ‘Trick’ Processing XML with jQuery. Before you start While this tutorial is useful to seasoned developers looking to pick up or sharpen their jQuery and XML processing skills, it also provides a practical overview of essential DOM scripting concepts, which can bring even the most junior JavaScript coders up to speed and allow them to grasp the full scope of the tutorial. About this tutorial As advanced media- and data-rich web applications grow in population within the browser, technologies such as XML and jQuery become important components in their architecture due to their wide adoption and flexibility. In this tutorial, you explore DOM processing within the browser, narrowing the focus to how these paradigms apply to XML in particular and how the jQuery library can speed up development and increase robustness.

The tutorial covers these specific topics: Introduction to the DOMXML and JavaScript in the browserjQuery and XMLCase study: LiveXMLEditor Prerequisites See Resources for links to all the tool downloads. Back to top <! A VSDoc for jQuery 1.5 - Encosia. I’ve noticed several people looking for a jQuery 1.5 VSDoc this week. After looking around myself, I didn’t see one anywhere either. So, I updated Damian Edwards’ VsDocBuilder for jQuery 1.5 and generated a new VSDoc.

It doesn’t handle the new jqXHR and Deferred return types quite right, so you won’t get Intellisense for the new chained $.ajax() callbacks. However, it should be better than nothing until a fully functioning version is released. You can download it here: jQuery-1.5.0-vsdoc.js Update: Damian has just made a fully functional version of the 1.5 VSDoc available (that was quick): jquery-1.5-vsdoc.js.

You should use his instead of mine. Important: This new VSDoc makes use of <para> tags to display line breaks inside documentation tooltips. JsPlumb. $().animaDrag. jQuery Popup Menu Style 14 (Steel Blue) Dynatree - Project Hosting on Google Code. ProgressDialog for jQuery. Drag And Drop Sort Example. Drag And Drop Sort Summary The jQuery Drag And Drop Sort project is a plugin that adds drag and drop sorting to any group of elements.

This means you can apply drag and drop sorting to a table or a list or practically any group of elements, such as some paragraphs inside a division. Sortable list One Two Three Four Sortable table Sortable paragraphs Sortable divisions Please read the drag and drop sort documentation for instructions on how to use the plugin. Options classmodifier Used to apply class names to the elements created by the plugin. Appendlastline Specifies whether the plugin should add an additional line to allow items to be dragged to the very end of the list. ContainsInputs If the drag and drop sort contains input boxes, this setting lets you still click in them. Playground - MobilyMap. SpryMap - lightweight javascript click and drag map script | candrews.net.

jQuery Plugins by Wayfarer. Animadrag: Drag and Drop Plugin with Animated Easing. Most Recent Blog Post:jQuery Mapbox Updated Click to toggle dark text on white Home » Plugins » animaDrag $().animaDrag is an ultra lightweight drag and drop plugin that is independent of the jQuery UI framework. Although it has fewer features than the UI draggable library, it is also much smaller. AnimaDrag allows draggable items to be eased by jQuery animation, which UI draggables do not allow.

This allows for a richer display of the transition between two locations, with full easing support. Default Limited to #page and slow Limited to #page, easeOutBounce easing, hides text when picked up Faster, easeInCubic easing, appends to original div when dropped Faster, uses grip to drag around Fastest, with high interval Show Code Because it relies on animation during its transition, it is recommended to use with the jQuery Easing Plugin.

Because it is so lightweight, it doesn't have anything built into it to know where to drop the draggable area when it is let go of. All Options (at default values) Mapbox: the jQuery Map. Most Recent Blog Post:jQuery Mapbox Updated Click to toggle dark text on white Home » Plugins » Mapbox Get latest code here. Or get the outdated (but still working) version:[ Click here for the mapbox.min.js code - Click here for the uncompressed code ] $().mapbox(). The jQuery mapbox() plugin is for creating relatively small scale, zoomable, draggable maps with multiple layers of content. Mousewheel will zoom the map. . * New feature: by default, the map will now zoom to the cursor position when the mousewheel is used. The code:Before using Mapbox, you must link to jQuery and mapbox.js.

Then, some CSS. Then, some HTML. The jQuery: That is all! In addition to the settings, there are some methods that may be passed to any map once it has been created: Here's an example using some of these methods to implement a control panel for the map: Bandwidth costs money. The JavaScript error on this page is due to the Chili (code highligher) plugin. GameQuery - a javascript game engine with jQuery. .ready. Description: Specify a function to execute when the DOM is fully loaded. While JavaScript provides the load event for executing code when a page is rendered, this event does not get triggered until all assets such as images have been completely received. In most cases, the script can be run as soon as the DOM hierarchy has been fully constructed. The handler passed to .ready() is guaranteed to be executed after the DOM is ready, so this is usually the best place to attach all other event handlers and run other jQuery code.

When using scripts that rely on the value of CSS style properties, it's important to reference external stylesheets or embed style elements before referencing the scripts. In cases where code relies on loaded assets (for example, if the dimensions of an image are required), the code should be placed in a handler for the load event instead. The .ready() method is generally incompatible with the <body onload=""> attribute. Which is equivalent to calling: Creating a simple jQuery plug-in. Download source code - 1.36 MB Introduction We see a lot of JavaScript libraries floating around.

A JavaScript library makes developers' life easy by avoiding the need to directly deal with the dirty waters of browser compatibility issues. They save a lot of time by allowing programmers to code what they intend to do and not worry about browsers. jQuery is one of the libraries I admire. It's light-weight, easy to use, beautiful, and so on. In this article, we will see how to create a simple plug-in called Map Scroller that lets any overflowing HTML element to scroll like in Google Maps. Let's dive into the article Requirements jQuery v1.4.2 jquery.DisableTextSelect.js Tips in jQuery $ is the main object in jQuery. . $.fn.Method1 = function(){ }; $("div").Method1(); bind() allows you to bind methods to events.

$("input[type=button]").bind("mouseover mouseenter", function(){ alert('hi'); }); data() allows you to store any custom data as key-value pairs. $("p").addClass("class1 class2"); Map Scroller. Momentum Scrolling. (Posting the entire email thread re: Adobe's experimental momentum scroller here to we can continue the conversation here, please excuse the ugly formatting) Hi Kin - Just tested this on an HTC Incredible running Android 2.1 and WebOS I can't seem to get the scrolling to work.

The first demo scrolls a little bit in the content pane but the others don't seem to do anything. This is still promising because I'm able to interact with the form elements on Android. Do you think you'd be able to track down an Android device running 2.1 to see if that version is also debuggable? If we can get this working in a decent set of devices, it could be a big win. _t todd.parker .: . filament group inc. 102 south street #3 boston, ma 02111 email + todd@filamentgroup.com phone + 617.482.7120 fax + 617.687.0212 web + filamentgroup.com On Sep 21, 2010, at 4:07 PM | September 21, 2010, Kin Blas wrote: Just an FYI, I figured out why it doesn’t work on Android. EventType: (typeof Touch == "object") ?

EventType: “touch”