background preloader

How to build a web widget (using jQuery) - Alex Marandon

How to build a web widget (using jQuery) - Alex Marandon
Published on 15 June 2010, updated on 10 February 2015, 110 Comments Introduction I created some web widgets for the London’s Design Museum and learned a few useful things in the process. Although all the necessary information can be found on the web, I couldn’t find a really comprehensive guide about doing this with jQuery so I decided to write this one. I’ll cover only techniques which are specific to web widgets so you should already be familiar with JavaScript, jQuery and web development if you want to follow easily. The interesting points will be: ensure the widget’s code doesn’t accidentally mess up with the rest of the page, dynamically load external CSS and JavaScript files, bypass browsers’ single-origin policy using JSONP. Don’t worry if all this doesn’t make sense to you yet, we’ll see in details what these techniques are used for in the context of building web widgets. That’s really all that a web site owner would need to include our widget on her pages. Can’t it be even simpler? Related:  web

Nine cool CD Art Display skins to showcase your music CD Art Display is a great little utility that puts the album art for the music you're listening to right on your desktop. It works with numerous players (iTunes, Foobar2000, Winamp, Helium, Windows Media Player, and more), and it shows you the album art for whatever track is currently playing with a beautiful skin. The art has to be in the album's folder, but if you don't already have it, CD Art Display can help you find it (it has a feature for automatically downloading covers). Since it already interfaces with your player, CD Art Display also lets you switch to the next or previous track, pause/play, change the volume, and even rate the song and find and display its lyrics (right in the program, not in a pop-up browser window). It's pretty neat stuff! CD Art Display isn't new; the last stable version (2.0.1) was released on September 8, 2009. There are currently over 200 skins in the official gallery, so picking nine was tricky. Speaking of large, here's another chunky skin.

jQuery 1.4.3 Offline Learning Kit Hey guys. Quick post for you today. So by now, chances are you’ve had an opportunity to play around with jQuery 1.5 (and 1.5.1) and you may have even checked out some of the great new Deferred features that that release came with. Today I wanted to share an offline learning pack for anyone interested in tweaking their jQuery skills offline. What does this learning pack come with? I’m also actively recommending all beginner and intermediate developers read Rebecca Murphey’s excellent jQuery Fundamentals book as it’s a wonderful starting point for increasing your knowledge and skills with both jQuery and JavaScript in general. The 1.5.1 Offline Learning Kit Includes For record purposes, if you’re interested in picking up the 1.4.3 kit from last year, I’m going to leave it up below. The 1.4.3 Offline Learning Kit Includes If you’re looking to start working with jQuery Mobile, it can be nice to have a minimalist example at your fingertips to start off with.

Mind Map A mind map is a kind of spider diagram that organizes information around a central concept, with connecting branches. The layout is controlled by moving the nodes closest to the tree's root node. When one of these nodes is moved horizontally to the other side of the root, all of its children will be sent to Layout.doLayout with a new direction, causing text to always be moved outwards from the root. The spotConverter function is used to manage GraphObject.fromSpot and GraphObject.toSpot for nodes manually, so the TreeLayout.setsPortSpot and TreeLayout.setsChildPortSpot properties are set to false so that laying out the diagram will not overwrite the values. When a node is deleted the CommandHandler.deletesTree property ensures that all of its children are deleted with it. Node templates also have a Part.selectionAdornmentTemplate defined to allow for new nodes to be created and a GraphObject.contextMenu with additional commands. Diagram Model saved in JSON format:

Free Web-Based Widget Tools for Website Owners Everyone already knows that when it comes to building a successful blog or Website, content is king. Thanks in part to a growing number of easy-to-install widgets, you can populate your online home with a variety of interesting material that isn’t necessarily created by you. Or better yet, create your own XML feed and present your information in a fresh and exciting way. Here are several free Websites that allow you to create or pull widgets. Widgetbox All you need to create a widget is a feed of content. A Blidget allows you to turn your blog into an instant widget that can be installed by other Website owners. There are thousands of widgets available for installation. A Pro account, which costs only a few cents a day, gives the widget creator greater control. Wowzio There is also a Feed Content Widget which will show the 50 most recent blog posts. Wowzio is getting close to over 2 million widgets served. Dijit Produle Flash-based and sexy! Grazr

Tag Clouds - Styling and Adding Sort Options Users have very different opinions when it comes to tag clouds. Some like them, some can’t stand to look at the mess. Whatever your feelings are, categorizing items (i.e. blog posts) using tags have become very popular and widely spread and can’t be avoided in the web today. So we might as well learn how to deal with them. Take a look at the full demo | Download Tag Cloud Style & Sort Overview This article consists of 2 parts: one is marking up and styling tags and the second is adding behavior to tag cloud using client-side script. ) tutorials elsewhere. Tag cloud is a list of links. <div class="tags"><ul><li class="tag1"><a href="#">Lorem ipsum</a></li></ul></div> Based on certain parameters, tag cloud items have different visual treatment. The other option is to use color and contrast to achieve the same goal. And… Action! Many visitors find tag clouds too confusing to use, so why not provide them with an alternative? Check out this (static) demo page with both styles. Enjoyed the article?

NoFlo | Flow-Based Programming for JavaScript Website News - Samurize download - News Hey everyone, NeM here. It's been a long time since I visited samurize.com but I noticed that the new site, samurize.us, is gone. So I have decided to repair and open this site up again so that Samurize users can still discuss the program, upload screenshots & other files and so forth. If you notice any problems or errors on the website, please post them in the forums and I will fix them when I get a chance. I installed the latest Samurize version on Windows 7 (you have to enable compatibility mode for Windows XP in order to install) and it still runs fine, but I am sure there are features that are either no longer working or are glitchy. I do not have any word at this stage as to whether any further versions of Samurize will be released, but at a guess I would say no. Thank you for supporting Samurize over the years and I hope you have enjoyed using it as much as we have enjoyed creating it Cheers,NeM UPDATE: donation button has been fixed.

Easy Display Switch with CSS and jQuery Get the FlatPix UI Kit for only $7 - Learn More or Buy Now This tutorial was originally put together by Soh Tanaka during the Spring of 2009. Unfortunately the original demo went offline along with his source codes. I am going to demonstrate how we can make a simple list-style interface that switches over to thumbnails using jQuery. Getting Started All the functionality we need can be written in plain jQuery without any external plugins. <! The internal body structure contains an outer wrapper div with the ID #w to center everything. <div id="w"><span class="options">Switch Options: <a href="#" id="details-list" class="sorticon active" title="List View"><img src="images/details-list.png" alt="list"></a><a href="#" id="thumbnails-list" class="sorticon" title="Thumbnail View"><img src="images/thumbnails-list.png" alt="thumbnails"></a></span><! I’ve only copied over the beginning section of the page along with a single list item structure. Page Design with CSS Transitioning jQuery Effects

Hack our apps | Meemoo project by Forrest Oliphant welcome to meemooVilson Vieira Paper GIFforresto GIF+HTML workshopBrasstown animators HTML5 videoForrest Oliphant particles → trailsForrest Oliphant (more) particles → tileForrest Oliphant Megacam gridForrest Oliphant GIFs from 1989Forrest Oliphant recursive spiralForrest Oliphant hackable clock 0.1Forrest Oliphant digital rainbow clockForrest Oliphant play beethovenVilson Vieira, g200kg 8 bit synthVilson Vieira, g200kg mr.doob harmonyVilson Vieira, mr.doob web tunnelVilson Vieira

Related: