background preloader

jQuery

Facebook Twitter

10 Beautiful jQuery and MooTool Calendar Plugins. Hacking at 0300 : Understanding jQuery UI widgets: A tutorial. Last modified May 31, 2012. Updated for jQuery 1.8 This was written largely to help me make sense of using UI to create my own widgets, but I hope it may help others. "Widget" to me means a user-interface element, like a button or something more complicated like a popup date picker, but in jQuery UI terms it means a class, members of which are associated with HTML elements; things like Draggable and Sortable.

In fact, not everything that I would have called a widget uses $.widget; the UI datepicker does not. Dan Wellman has another tutorial that you may find helpful. Modifying Elements: Plugins That being as it may, let's use $.widget. Let's take a paragraph of class target: <p class="target">This is a paragraph</p> This is a paragraph Now, make it more general-purpose: a plugin: Keeping State in Plugins But this pollutes the $.fn namespace terribly, with off, darker and lighter. The Problems with Associating an Object with a Plugin Solving the Problem: $.widget That's where $.widget comes in. Rotating wheel for your iPhone webapps | Matteo Spinelli's Cubiq.org. As always get an idea of what I am talking about watching the short screencast or point your mobile browser to the online demo.

As you’ll see the code is pretty rough, you probably won’t be able to cut’n'paste it into your project and make it work without editing, but I hope you’ll get an idea of what can be done with this little webkit beauty in just a couple of hours. To build the astrological wheel I decided to split each sign into a slice. This way I had much freedom to play with every element of the control as I wanted to do a short slide-in animation on window load.

Each astrological sign is a li element each rotated by 30 degrees compared to the previous. So aries is -webkit-transform:rotate(0deg), taurus -webkit-transform:rotate(29deg), gemini -webkit-transform:rotate(59deg), and so on. To get the slide-in animation I also y translated by -100 pixel each sign and on window load I execute the following code: . Th-th-that’s all folks. Download the script. Wink toolkit. Freebies. Dynamic Drive CSS Layouts- Liquid Layouts. Linksgrid - Web 2.0 portal using asp.net MVC, Ajax Client Templa. Jquery-utils - Project Hosting on Google Code. jQuery.utils is a library I maintain and use in my every day work and spare time. It's a collection of jQuery plugins and widget that I often use. Some are made by me, some by other authors, but they are all under MIT or dual Open Source license.

Notice: I'm interesting about how developers use this library and what plugins they use the most. If you do use my library and have some feedback to give me it's the right time: Goals Provide extra jQuery features for everyday web development Provide downloads on a highly available server Easily make custom builds Provide unit tests for plugins who hasn't Centralize the documentation of the plugins I often use on a highly available server Maybe find some contributors Have fun with jQuery Builds Plugins Extra plugins These plugins are not built by default.

These plugin are available with the jquery.utils.ui.js build. Note: Depends on the jQuery UI library. Experimental Links Stats. JSONPath Support | SitePen Blog. We recently added JSONPath support to the Dojo Toolkit. In the Dojo Toolkit 1.1, JSONPath queries can now be executed by calling dojox.jsonPath.query. JSONPath is a powerful tool for extracting data from JavaScript data objects, and has query capabilities that are similar to those of XPath queries on XML, except applied to JSON originating data. JSONPath follows JavaScript/C syntax where possible, borrowing from ES4 and Python as needed for certain operations, making for a very readable portable syntax. A JSONPath query can be called with the following call: Where the object is the object to queried, the query is the JSONPath query to execute, and the optional options parameter provides options for changing evaluation. There are a number of common patterns that can be simplified by JSONPath.

Another capability of JSONPath is the recursive decent operator, “..”. The full set of operators that can be used in JSONPath expressions are: Result-Based Evaluation Safe-Evaluation. Dojo Toolbox - SitePen, Inc. Hacking at 0300 : New jQuery Widget: <code>flexcal</code> Updated 2014-02-26 to version 2.1.2, with some bug fixes Just what the world needs—another date picker Download the code. The current incarnation of the jQuery UI datepicker works fine, but I needed something that could handle the Jewish calendar. This is not the same as localizing datepicker to use Hebrew;that just translates the month and day names but uses the same Gregorian calendar as everyone uses. I needed a calendar that could switch between multiple, completely different calendar systems.

The algorithms for converting dates from Jewish to Gregorian are readily available open-source, so that was easy. textpopup is exactly what I need to create the pop-up box for the calendar, and I had already created my own date picker for my old bililite site (don't look at it too closely; it's ugly and I used an old version of Prototype. And so was born flexcal. <span>Using <code>datepicker</code>: </span><input id="date1"/><br/><span>Using <code>flexcal</code>: </span><input id="date2"/> Options. Brian J. Cardiff » jQuery. The Thirsty Developer - The Thirsty Developer 59: jQuery. This week we have an interview an interview with Brennan Stehling a developer and author from Milwaukee, WI.

Brennan and Larry talk about jQuery. Brennan blogs at After the interview Larry talks about with Dave about his finishing up on his special assignment in Redmond. Larry then asks Dave which technology he leans towards: AJAX or RIA. Show Notes ASP.NET AJAXJohn Resig – creator of jQueryPro JavaScript Techniques by John ResigcssQuery ProjectLearning jQuery by Jonathan ChafferJavascript the good parts by Douglas CrockfordRunning JSLINT from within Visual StudiojQuery in Action by Bear Bibeault A Website you should know Dave’s pick: Clemens Vaster’s BlogLarry’s pick: W3C Validator for HTML and CSS Download / Listen to the Show. NET Silverlight Controls and Windows Forms Controls - DataGrid, JSONPath - XPath for JSON. JSONPath expressions always refer to a JSON structure in the same way as XPath expression are used in combination with an XML document.

Since a JSON structure is usually anonymous and doesn't necessarily have a "root member object" JSONPath assumes the abstract name $ assigned to the outer level object. JSONPath expressions can use the dot–notation $.store.book[0].title or the bracket–notation $['store']['book'][0]['title'] for input pathes. JSONPath allows the wildcard symbol * for member names and array indices. Expressions of the underlying scripting language (<expr>) can be used as an alternative to explicit names or indices as in $.store.book[(@.length-1)].title using the symbol '@' for the current object.

. $.store.book[? Here is a complete overview and a side by side comparison of the JSONPath syntax elements with its XPath counterparts. XPath has a lot more to offer (Location pathes in not abbreviated syntax, operators and functions) than listed here. Home. Hacking at 0300 : jQuery UI Widgets. This was written largely to help me make sense of using UI to create my own widgets, but I hope it may help others. "Widget" to me means a user-interface element, like a button or something more complicated like a popup date picker, but in jQuery UI terms it means a class, members of which are associated with HTML elements; things like Draggable and Sortable . In fact, not everything that I would have called a widget uses $.widget ; the UI datepicker does not. Modifying Elements: Plugins That being as it may, let's use $.widget .

Let's take a paragraph of class target: <p class="target">This is a paragraph</p> This is a test paragraph And lets make it green. But this allows us to perform some behavior on the selected elements; it does not leave us with any way to keep our plugin associated with that element, so we can do something with it later, like $('.target').off() to remove the green background, but only if we used green to put it there in the beginning. Keeping State in Plugins. Apple-like Slideshow Gallery.

Via Ad Packs Apple-like GallerySlideshow View the original tutorial » This is a tutorialzine demo. View the original tutorial to read and download the source files. The gallery features artwork from rambocre, pickupjojo and codenamebender.