0

Really Useful Tutorials You Should Have Read in June 2010

Posted by W3Avenue Team on Jun 29, 2010 in - CSS, - Javascript, - PHP, - Silver Light, - Tutorials  | View Original Article
 

This update covers really useful tutorials, tips and techniques that you should have read in June 2010. Featured publications include: Justin Tadlock, Nettuts+, David Walsh Blog, Smashing Magazine, Tutorialzine, A List Apart, Perishable  Press, Carsonified, Marcofolio, Nicolas Gallagher, Codrops, Onextrapixel, Digging into WordPress, Six Revisions, Line25, 1stWebDesigner, Alex Marandon, and Voosh Themes.

Featured authors include: Justin Tadlock, David Walsh, Martin Angelov, Nicolas Gallagher, Jeff Starr, Marco Kuiper, Faruk Ates, Chris Coyier, Chris Spooner, Richard Fink, Dan Wellman, Rafael Soto, Lorna Jane Mitchell, Divyang Patel, John Cox, Mary Lou, Irina Borozan, Jonathan Phillips, Paras Chopra, Alex Marandon, Darren, and Chris Creed.

So which tutorials you found most useful. Also feel free to recommend any good article that we may have missed.

Similar Posts:

You can also stay updated by following us on Twitter, becoming a fan on Facebook or by subscribing to our FriendFeed.

Tags: , , , ,

 
0

gvChart: Make Google Charts With HTML Tables

Posted by W3Avenue Team on Jun 28, 2010 in - Javascript, - Silver Light  | View Original Article
 

gvChart is a jQuery Plugin, that create interactive charts and graphs (Area, Line, Bar, Column and Pie) using Google Chart Tools / Interactive Charts (aka Visualization API). Its main features is the use of HTML tables as data source for creating charts.

Use of an HTML table makes it really easy to implement gvChart in your project. It allows you to specify whether you want to display or hide the HTML table. Another configuration option enables you to directly pass Google Charts setting, that you can find in Google Visualization API Gallery.

Developed by Janusz Kamienski; gvChart jQuery Plugin is available for download under CC Attribution Works 3.0 License.  You can find further information, demos & download on gvChart Website.

Similar Posts:

You can also stay updated by following us on Twitter, becoming a fan on Facebook or by subscribing to our FriendFeed.

Tags: , , , , , ,

 
0

Validity: Unobtrusive jQuery Form Validation Plugin

Posted by W3Avenue Team on Jun 23, 2010 in - Javascript, - Silver Light  | View Original Article
 

Validity is a powerful jQuery plugin for client-side form validation. It is easy to setup, lightweight, unobtrusive and allows you to make use of jQuery’s selector engine and follows its pattern of method chaining – so if you already know jQuery, then learning to use validity will be really easy.

Setting up and implementing Validity is quite simple. There is no need to attach validation logic to your form / markup; all you need to do is include CSS, jQuery and Validity files, and specify the validation logic using the validity method.

Features

  • Customizable Appearance
  • Unobtrusive JavaScript
  • Easy Setup
  • Access to jQuery Selector Engine for Specifying Rules
  • Can Use String Argument For Required Fields
  • Call validity’s start and end Functions with AJAX
  • Several Built-in Validators: Require, Match, Range, Greater Than/Greater Than or Equal To, Less Than/Less Than or Equal To, Max Length/Min Length
  • Supports Several Aggregate Validators

Developed by Wyatt Allen; jQuery.Validity is dual licensed under the MIT and GPL licenses.  You can find further information, demos  & download on Validity Website.

Similar Posts:

You can also stay updated by following us on Twitter, becoming a fan on Facebook or by subscribing to our FriendFeed.

Tags: , , , , , ,

 
0

jWizard: jQuery Form Wizard Plugin

Posted by W3Avenue Team on Jun 21, 2010 in - Javascript, - Silver Light  | View Original Article
 

jWizard is jQuery plugin for generating a wizard like interface for your web application. You can use jWizard to to enrich your user interface by dividing content and web forms into series of steps – reducing a large and complicated process into small chunks.

jWizard is really easy to implement; all you need to do is divide your content into multiple parts using very simple markup and then call jWizard funtion. The rest of the HTML as well as the JavaScript that you need for a slick wizard interface is automatically generated and handled behind the scenes. jWizard is also powered by jQuery UI library and is stylable via jQuery UI’s ThemeRoller or custom CSS classes.

Features

  • simple HTML, CSS and JavaScript setup requirements
  • Custom Events: finish (jWizard), cancel (jWizard), activate (steps), deactivate (steps)
  • Flexible CSS and Styling Capability
  • jQuery UI Themeroller Integration
  • Programmatic Step-Navigation (via Public Methods)
  • Step Counter (with Percentage and Count modes)
  • Custom Button Text
  • Sidebar Navigation (Step Titles and/or Step Numbering)
  • Seamless HTML Forms integration (set the ‘buttons.finishType’ configuration option to ‘submit’)
  • Integrated Form Validation (Step-Based)
  • jQuery UI Animations built in

Developed by Dominic Barnes; jWizard is available for download License Free.  You can find further information, demos & download on jWizard Project Website.

Similar Posts:

You can also stay updated by following us on Twitter, becoming a fan on Facebook or by subscribing to our FriendFeed.

Tags: , , , , , , ,

 
0

Excellent jQuery Navigation Menu Tutorials

Posted by vitaly on Jun 17, 2010 in - Design & Graphics, - Silver Light  | View Original Article
 
Advertisement in Excellent jQuery Navigation Menu Tutorials
 in Excellent jQuery Navigation Menu Tutorials  in Excellent jQuery Navigation Menu Tutorials  in Excellent jQuery Navigation Menu Tutorials

If you are a web designer, you will agree that to keep the interst of the visitors, design of the website must be clear and intuitive. And, of course, the key to clear design is a clear navigation, so it’s important to make it both attractive and easy to use. Today we are presenting you some of the most hunky-dory jQuery-based navigation menus. If you come across more interesting stuff do share the links with us.

jQuery Navigation Menu Tutorials

Create a Slick Tabbed Content Area using CSS & jQueryDemo | Details

Tabbed content is a great way to handle this issue and has been widely used on blogs recently. In this tutorial, author will show is how to build a simple little tabbed information box in HTML, then make it function using some simple Javascript, and then finally achieving the same thing using the jQuery library.

Navigation18 in Excellent jQuery Navigation Menu Tutorials

How to Make a Smooth Animated Menu with jQueryDemo | Details | Download
The author builds a menu and animates it with some smooth effects.

Navigation13 in Excellent jQuery Navigation Menu Tutorials

CSS Sprites2 – It’s JavaScript TimeDemo | Details
In this tutorial, author will show you how to create a navigation menu using jQuery to compete with flash based navigation.

Navigation15 in Excellent jQuery Navigation Menu Tutorials

jQuery Random Link Color AnimationsDemo | Details
In this tutorial author will show how to create menu using random colors to add a bit more dynamism and flair as jQuery allows you to not only animate to a specified color, but also allows you to animate to a random color.

Navigation20 in Excellent jQuery Navigation Menu Tutorials

Animated Drop Down Menu with jQueryDemo | Details | Download
In this tutorial, author will show you how to use jQuery for making Drop down menus are a really convient way to fit a large menu into a really small initial space.

Navigation19 in Excellent jQuery Navigation Menu Tutorials

Create an apple style menu and improve it via jQueryDemo | Details | Download
In this tutorial, Author will show you how to create the Apple-flavored Leopard-text-indent style in Photoshop, then create the needed HTML and CSS and last but not least improve it via jQuery.

Navigation11 in Excellent jQuery Navigation Menu Tutorials

How to Create a Drop-down Nav Menu with HTML5, CSS3 and jQuery Demo | Details | Download
In this tutorial, author will show us what we can achieve with HTML5 and CSS3 when it comes to the staple of current web sites: the humble drop-down navigation menu. Author will also use jQuery to handle the effects and add the finishing touches for us.

Navigation1 in Excellent jQuery Navigation Menu Tutorials

How to Build a Lava-Lamp Style Navigation MenuDemo | Details | Download
In this tutorial, author will tell us on how to build a lava-lamp style menu using a JavaScript library.

Navigation2 in Excellent jQuery Navigation Menu Tutorials

How To Create A ‘Mootools Homepage’ Inspired Navigation Effect Using jQueryDemo | Details | Download
In this tutorial, author will tell us how To Create A ‘Mootools Homepage’ Inspired Navigation Effect Using jQuery.

Navigation3 in Excellent jQuery Navigation Menu Tutorials

Making Accordion Menu Using jQueryDemo | Details | Download
In this tutorial, author will show us how to create fancy accordion menu using jQuery. In this post, you’ll see two examples of accordion. First menu’s visibility get’s toggled on clicking on the header while the another menu’s visibility get’s toogled when mouse is moved over it.

Navigation4 in Excellent jQuery Navigation Menu Tutorials

jQuery idTabsDemo | Details | Download
In this tutorials author will show you how to use idtabs. idTabs is simple and easy to use.

Navigation5 in Excellent jQuery Navigation Menu Tutorials

Create a multilevel Dropdown menu with CSS and improve it via jQueryDemo | Details | Download
In this tutorial author will show you how to make a multilevel dropdown menu with a sleek touch

Navigation6 in Excellent jQuery Navigation Menu Tutorials

Using jQuery for Background Image AnimationsDemo | Details
In this tutorial author will show you how to create background image imagination with the help of jQuery.

Navigation7 in Excellent jQuery Navigation Menu Tutorials

Superfish – “menu jQuery plugin”
Superfish is an enhanced Suckerfish-style menu jQuery plugin that takes an existing pure CSS drop-down menu (so it degrades gracefully without JavaScript)

Demo | Details | DownloadNavigation8 in Excellent jQuery Navigation Menu Tutorials

Drop down menu with jQueryDemo | Details
Here’s a drop down animated menu example made with jQuery.

Navigation9 in Excellent jQuery Navigation Menu Tutorials

Creating a Floating HTML Menu Using jQuery and CSSDemo | Details | Download
Author will show us how to make floating menus that move as you scroll a page. This is done using HTML, CSS and jQuery, and it’s fully W3C-compliant.

Navigation10 in Excellent jQuery Navigation Menu Tutorials

jQuery & CSS Example – Dropdown MenuDemo | Details
Dropdown menus and menu bars have been heavily used since the early days of graphical user interfaces. Their use has become ubiquitous, and even expected, in desktop applications, and the web has quickly followed suit. This article is intended to describe an extremely basic, yet extremely powerful, technique for adding dropdown menus in your application user interface or website design.

Navigation12 in Excellent jQuery Navigation Menu Tutorials

Designing the Digg Header: How To & DownloadDemo | Details | Download
In this tutorial, author will show you how to create a navigation menu just like the one used in Digg.

Navigation14 in Excellent jQuery Navigation Menu Tutorials

jQuery Tabbed NavigationDemo | Details
In this tutorial, author will tell us how to create jQuery tabbed navigation.

Navigation16 in Excellent jQuery Navigation Menu Tutorials

Color Fading Menu with jQueryDemo | Details | Download
In this tutorial, author will show you how to create a color fading efect with the help of jQuery.

Navigation17 in Excellent jQuery Navigation Menu Tutorials

Tags: , ,

 
0

Animated Table Sort

Posted by W3Avenue Team on Jun 17, 2010 in - Javascript, - Silver Light  | View Original Article
 

Animated Table Sort is a  jQuery plugin that allows you to create tables, which can be sorted based on a particular column. Whenever user clicks on column head to sort the table, data will animate to it new location, giving a nice effect. Another important feature is its ability to sort based on REGEXP matches.

Animated Table Sort plugin enables you to control whether row relationships are maintained, whether it sorts on ASCII or numeric and ascending or descending order. It also cleans up after itself by removing DOM-scripted DIVs created to add animation effect.

Developed by Andy Croxall; Animated Table Sort Plugin is available for download License Free.  You can find further information, demos  &  download on Animated Table Sort Plugin Website.

Similar Posts:

You can also stay updated by following us on Twitter, becoming a fan on Facebook or by subscribing to our FriendFeed.

Tags: , , , , ,

 
0

jMedia Element: HTML5 Audio / Video Development Kit

Posted by W3Avenue Team on Jun 16, 2010 in - Javascript, - Silver Light  | View Original Article
 

jMedia Element is jQuery / jQuery UI powered HTML5 audio / video development kit; providing you with lots of feature and control over audio and video elements in your page. It supports HTML5 audio / video in modern browsers with  Flash and VLC fallback in older browsers.

jMedia Element is extremely flexible script – it let’s you customize the look and feel of your media player using CSS, and provide rich set of APIs to control your media component in variety of ways. It is cross browsers library that also works in iPad and Internet Explorer.

Features

  • Unified API, that works like jQuery DOM-Scripting
  • Better integration of Flash and other Plugins into the HTML/DOM
  • WAI-ARIA enhanced controls
  • Hooks to extend API, controls and plugin support
  • Cross-browser, cross-plugin and cross-device support
  • Plays ogg (theora/vorbis), mp4/mov (h.264), WebM (VP8/vorbis), flv, youtube videos and some more
  • Easy and intuitive to embed, style and script
  • jQuery UI Themeable

Developed by Alexander Farkas; Dragdealer is available for download under under under MIT & GPL2 Licenses.  You can find further information, demos  &  download on jMedia Element Website.

Similar Posts:

You can also stay updated by following us on Twitter, becoming a fan on Facebook or by subscribing to our FriendFeed.

Tags: , , , , , , , , , ,

 
0

Spicing Up Your Website With jQuery Goodness

Posted by ZURB on Jun 15, 2010 in - CSS, - Design & Graphics, - Silver Light  | View Original Article
 
Smashing-magazine-advertisement in Spicing Up Your Website With jQuery Goodness
 in Spicing Up Your Website With jQuery Goodness  in Spicing Up Your Website With jQuery Goodness  in Spicing Up Your Website With jQuery Goodness

There comes a point in every website design when you simply want to give the website a little spice to impress the visitor and make it memorable. You want that sexy interaction to capture the user’s attention. In our previous articles, we showed you how to spice up your website with sexy buttons, practical elements and attractive visual effects.

In this article, we’ll discuss how to seduce your visitors with a little JavaScript action. In our examples, we’ll be using jQuery, a fast and concise JavaScript library that simplifies HTML document traversing, event handling, animation and Ajax interactions for rapid Web development. Ready? Let’s get things rolling!

[Offtopic: by the way, have you ever visited Smashing Magazine's List of tags? There might be something interesting for you.]

Ajax Image Uploader

Image uploads will be much better after your read this. Guaranteed. By using a bit of jQuery, we can upload images with previews.

How do you upload images now? You select a file and click upload. Simple, right? Except that once you select your image, you can no longer see what was selected. The name of the file is at the end of the input field, and if the input field is short or the file path is deep, you won’t see anything useful. You’ll forget what you selected and have no idea what you’re about to upload.

Now try this variation on uploading an image. We ditch the “Upload” button in favor of a “Save” button and fire the Ajax upload event as soon as a file is selected. The image is processed server-side, and a thumbnail is loaded onto the existing page. Doesn’t that feel so much better? We now have a visual representation (imagine that!) of the image we selected.

Ajax-upload-lead in Spicing Up Your Website With jQuery Goodness

This is particularly useful in larger forms where many fields will be submitted in a single action. It allows the user to review the form before pressing “Save” and see what image (or images) they selected.

How does it work? Here’s the code. You’l need jQuery and the Ajax Upload jQuery plug-in. Link them up, and make sure jQuery is loaded first.

<script src="/js/jquery.min.js" type="text/javascript"></script>
<script src="/js/ajaxupload.js" type="text/javascript"></script>

Here is the JavaScript we will use in its entirety.

$(document).ready(function(){

	var thumb = $('img#thumb');	

	new AjaxUpload('imageUpload', {
		action: $('form#newHotnessForm').attr('action'),
		name: 'image',
		onSubmit: function(file, extension) {
			$('div.preview').addClass('loading');
		},
		onComplete: function(file, response) {
			thumb.load(function(){
				$('div.preview').removeClass('loading');
				thumb.unbind();
			});
			thumb.attr('src', response);
		}
	});
});

Let’s break the code down now and look at what’s really going on. First, we attach the AjaxUpload behavior to our file form element.

	new AjaxUpload('imageUpload', {

Next, we specify where to post the Ajax upload. We want to keep all of our URLs in our HTML document, so we pass this URL using the action attribute of our form element.

	action: $('form#newHotnessForm').attr('action'),

Set the name of the file form element that will be posted to your server.

	name: 'image',

Add a class to your preview div to indicate that the image is uploading. In our case, we are applying a background image to the preview div. We also need to set the image tag to display: none; in the preview div, so that the loading background image is visible, as well as for a more subtle reason explained below.

onSubmit: function(file, extension) {
     $('div.preview').addClass('loading');
},

When the image has been uploaded, we have to do two things:

  • First, we have to set the src attribute of our preview img tag to the new thumb.
  • Secondly, we have to remove the loading class. If we simply execute these things in that order, then we would see an annoying flicker of the old image when the loading class has been removed but the new image has not yet loaded.

We avoid the annoying flicker of the old image by waiting to remove the loading class until after the preview image’s load event fires. We also unbind our listener after it has fired because we want to capture this event only once.

onComplete: function(file, response) {
	thumb.load(function(){
		$('div.preview').removeClass('loading');
		thumb.unbind();
	});

Lastly, we set the source of the preview image to the thumbnail that our server has just created. In this example, the response from the Ajax call is just the thumbnail’s URL as text. You could return it in whatever fancy format you like.

	thumb.attr('src', response);
}

If JavaScript-support is disabled in user’s browsers, they will get the good old submit form without the interactive preview. Clean and functional solution, with rich interactions for users with more capable browsers.

Ajax-upload-box in Spicing Up Your Website With jQuery Goodness

Better Image Uploads

Want to try out and implement the image uploader yourself? Check out a live demo, the example code and more for this improved way to support image uploads on your website.

Check out the live demo »

Validation With jQuery Text-Change Event

Here’s a pretty common problem: you have a text form to validate client-side. Doing this is easy enough when the form is submitted, but in some cases doing it as the user is typing is best. For example, imagine how annoying Twitter would be if you had to submit your tweet before you were told how many characters it was.

Keep in mind, though, that this kind of immediate validation can be overused or abused. Don’t insult the user by congratulating them for every piece of text they enter in a field.

Image22 in Spicing Up Your Website With jQuery Goodness

Implementing this requires that you bind events to the keyup event — and a couple other events if you want to detect text changes on cut-and-paste events. Even if you’re a JavaScript god, having to keep writing this logic over and over again is tedious. We created a text-change event plug-in to help you handle all text-change events.

Detecting the Text (Better Than Twitter)

We begin by detecting text in the standard textarea. Look at the shot below: looks like a standard textarea with a disabled “Save” button.

Detecttextone in Spicing Up Your Website With jQuery Goodness

If you add text to the field, then the “Save” button enables and then disables when no text is in the field. Moderately impressive, right?

Detectext in Spicing Up Your Website With jQuery Goodness

Now, what if you try copying, pasting or cutting text with the shortcut keys? That works as well. What about right-clicking or using the “Edit” menu? Works, too. (By the way, Twitter doesn’t support the click or menu interactions.)

The code behind this is pretty simple. You’ll need to download and link up the textchange plug-in.

<script src="/javascripts/plugins/jquery.textchange.js"></script>

The plug-in adds the hastext and notext events, to which you can bind input and textarea elements.

$('#exhibita').bind('hastext', function () {
  $('#exhibitaButton').removeClass('disabled').attr('disabled', false);
});

$('#exhibita').bind('notext', function () {
  $('#exhibitaButton').addClass('disabled').attr('disabled', true);
});

The hastext event fires when the element goes from having no text to having text, and the notext event fires when the element goes from having text to being blank. Looking for more advanced validation? Keep reading.

Detecting Text Change

What about detecting text change in the field?

Change in Spicing Up Your Website With jQuery Goodness

This is very easy, too. A third textchange event fires whenever the text changes, and it provides you with the previous value.

$('#exhibitb').bind('textchange', function (event, previousText) {
  $('#output').append('

Text changed from <strong>' +
    previousText + '</strong> to <strong>' + $(this).val() +
    '</strong> </p>');
});

Twitter-Style Validation

Twit in Spicing Up Your Website With jQuery Goodness

We can implement some simple Twitter-like validation with just a single line and our textchange event.

$('#twitter').bind('textchange', function (event, previousText) {
  $('#charactersLeft').html( 140 - parseInt($(this).val().length) );
});

Ajax Save

Ajax in Spicing Up Your Website With jQuery Goodness

With a little more code and setTimeout, we can hook up an Ajax call to save a few seconds once the user stops editing. The Ajax call is just stubbed out here, but you get the idea.

var timeout;
$('#ajaxSave').bind('textchange', function () {
  clearTimeout(timeout);
  $('#ajaxFired').html('Typing...');
    var self = this;
    timeout = setTimeout(function () {
    $('#ajaxFired').html('Saved: ' + $(self).val());
  }, 1000);
});

Validate Text

Comp in Spicing Up Your Website With jQuery Goodness

This may sound contrived, but say you would like to ensure that the two words “companion cube” are in the emergency intelligence incinerator (i.e. the text field) before allowing the user to continue. No problem:

$('#emergencyIntelligenceIncinerator').bind('textchange', function () {
  if ($(this).val().indexOf('companion cube') !== -1) {
    $('#continue').removeClass('disabled').attr('disabled', false);
  }
});

jQuery Text-Change event can be very useful for web applications that are aiming for a high level of interactivity and visual feedback. You may even want to analyze some of the input and provide helpful clues. For instance, if the user is opening a new ticket in your support area, you may want to present links to possibly related answers in the support forum. Be sure not to analyze every keystroke, though, as it could result in a significant overhead for the back-end. And it is also important to keep in mind that the immediacy of the application should be subtle and should not interrupt user’s interaction.

Text-change-box in Spicing Up Your Website With jQuery Goodness

Text Change Events

Don’t fret about complicated validation, text events and edge cases. Check out the live demo and download the plug-in, which makes it a snap to perform a number of functions on text boxes to look for values, changes and more.

Check out the live demo »

JavaScript Annotation Plug-In

Image12 in Spicing Up Your Website With jQuery Goodness

An application that we recently developed (Notable) allows users to collect user feedback through interactive tools. Most of these tools require the user to annotate an image. We figured that many folks are trying to solve the same problem, so why not create a plug-in that they can use? This is the result. Our plug-in uses jQuery and makes it very simple to add and save image annotations.

To start off, download the JS Annotation Plug-In. To use the plug-in, just link up jQuery (1.2.3 or higher) and our plug-in.

<script src="/javascripts/plugins/jquery.js"></script>
<script src="/javascripts/plugins/jquery.annotate.js"></script>

Meet Nutmeg the Dog. After clicking on a random spot on Nutmeg, you’ll see the black circle appear.

First in Spicing Up Your Website With jQuery Goodness

function blackNote() {
  return $(document.createElement('span')).addClass('black circle note')
}

$('#nutmeg').annotatableImage(blackNote);

Here’s how it works: The first parameter to annotatableImage is a function that is implemented by you and that defines the element to be added when you click. In the example above, that function is called blackNote. Simple, right?

How to Save the Annotations?

Glad you asked. Use the jQuery selector to grab all the elements that you want to serialize, and call the serializeAnnotations function.

$('#nutmeg span.note').serializeAnnotations();

These values are returned in an array of objects, so you can easily save them with an Ajax call. The response_time variable is the time in milliseconds that the user took to add the annotation after you made the call to annotatableImage.

Savea in Spicing Up Your Website With jQuery Goodness

Let’s Get Relative

In our website feedback tool we needed to show our annotations in different-sized versions of our original image. The full size is just won’t always cut it in the world of good design. To make this easier, we store the x and y positions of our annotations relative to the width and height of the image.

Small in Spicing Up Your Website With jQuery Goodness

If you didn’t pass fifth-grade math, don’t worry: our plug-in does all the basic arithmetic for you. Warning: if you change the aspect ratio or crop the image, this will not work properly. Also, be sure to always store x and y as floating-point data types.

$('#smallNutmeg').addAnnotations(blackNote, annotations);

The annotations variable is an array of objects with x and y attributes. It looks exactly like the array returned by the serializeAnnotations function without the response_time attribute. What other attributes might you put in the annotation object? Read on…

Passing Attributes

We may want to pass some data to each of our annotations when adding existing annotations. Maybe we have numbered our annotations, or have added special classes or behaviors, whatever.

Numdata in Spicing Up Your Website With jQuery Goodness

The function we pass to annotatableImage accepts a single parameter, which is the annotation object from the array that you passed to addAnnotations. In this example, we added a position attribute, which we will display.

$('#numberedNutmeg').addAnnotations(function(annotation){
  return $(document.createElement('span')).
    addClass('black circle note').html(annotation.position);
},[
    {x: 0.3875, y: 0.3246, position: 4},
    {x: 0.57, y: 0.329, position: 2}
  ]
);

Hitting All the Positions

When we were annotating Nutmeg, you may have noticed that the annotation was centered at your click position. This may be great for circles and sparkly unicorns, but sometimes we may want to position our annotations differently.

The xPosition and yPosition options allow you to indicate where the annotation is positioned relative to the click. Options are middle (default), left, right and middle (default), top, bottom, respectively.

$('#labeledNutmeg').annotatableImage(function(annotation){
  return $(document.createElement('span')).addClass('set-label');
}, {xPosition: 'left'});

Give Nutmeg some clicks on our demo page to see what we’re talking about. In this example, we are positioning the click on the left side of the annotation.

Warning: make sure to pass the xPosition and yPosition to the serializeAnnotations function if you set these options in annotatableImage. The default behavior is to calculate the x and y values from the middle of the annotation.

Javascript-annotations-box in Spicing Up Your Website With jQuery Goodness

JavaScript Annotations Plug-In

Start supporting powerful, easily implemented annotations on your website or app with this plug-in. Adding notes, descriptions and more to these annotations is simple.

Check out the live demo »

Bonus: CSS Grid Builder

Grid-builder-lead in Spicing Up Your Website With jQuery Goodness

In our design process, we have been using a flexible grid framework that lets us rapidly prototype and implement websites. Recently, we’ve created some variant grids for different widths and gutter sizes, so we thought, why not just create grids on the fly with a simple tool?

Please feel free to use the ZURB CSS Grid Builder to build and generate source code for a simple, flexible grid framework for variable grid sizes and column numbers. Play around with it — we prefer it to a more full-featured solution such as YUI because it’s lighter and a little more flexible.

Grid-builder-box in Spicing Up Your Website With jQuery Goodness

CSS Grid Builder

Check out the CSS Grid Builder in the playground. You can preview the grid in different-sized browser windows and output a complete CSS framework.

Check out the grid builder »

(al)


© ZURB for Smashing Magazine, 2010. | Permalink | Post a comment | Add to del.icio.us | Digg this | Stumble on StumbleUpon! | Tweet it! | Submit to Reddit | Forum Smashing Magazine
Post tags: , ,

Tags: , , , ,

 
0

Easily Integrate Twitter Services With jTweetsAnywhere

Posted by W3Avenue Team on Jun 9, 2010 in - Javascript, - Silver Light  | View Original Article
 

jTweetsAnywhere is a jQuery Twitter Widget that simplifies the integration of Twitter services into your site. You can use it to display tweets from users’ feeds and users’ lists, show results from a Twitter search, integrate a customizable TweetBox, let your visitors follow you directly from your site, handle secure authentication with Twitter, etc.

jTweetsAnywhere also provides support for Twitter’s @Anywhere features like Hovercards, Tweet Box, Follow Button, etc. You needto register your application and obtain an API key in order to use these features.  Note these are optional features supported by jTweetsAnywhere, if you don’t need these features you can use rest of the features without having to register with Twitter for API key.

Features

  • Displays tweets from one or more user’s feeds
  • Displays tweets from a user’s list
  • Displays the results of a Twitter search
  • Supports all Twitter search params
  • Supports Twitter’s @Anywhere features
  • Optionally displays profile images in TweetFeeds
  • Automatically detects and marks up links in tweets
  • Automatically links #hashtags to Twitter search requests
  • Automatically links @username to Twitter profiles
  • Automatically shows Hovercards when hovering @username or profile images
  • Integrates a customizable TweetBox, so your visitors can update their status on the fly
  • Adds a Twitter “Follow Button” to your site
  • Adds a “Connect with Twitter” button to your site
  • Provides secure user authentication
  • Handles low level user login and signup procedures
  • Customize the style and layout of the widget with your own stylesheets
  • Overwrite the generated HTML markup by providing your own Decorators
  • Small code size for fast download
  • Does not interrupt the loading of your page

Developed by Thomas Billenstein; jTweetsAnywhere is available for download under under MIT License.  You can find further information, demos & download on jTweetsAnywhere Website.

Similar Posts:

You can also stay updated by following us on Twitter, becoming a fan on Facebook or by subscribing to our FriendFeed.

Tags: , , , , , , ,

 
0

Create Lightbox From DOM Elements With Lightbox-Me

Posted by W3Avenue Team on Jun 2, 2010 in - Javascript, - Silver Light  | View Original Article
 

Lightbox-Me is a jQuery plugin that lets you create lightbox from any DOM element in the page. Based on very simple concept, it is lightweight , and very useful. It is cross browser plugin that works in all major browsers including: IE 6+, Firefox 2.5+, Safari, and Chrome.

Lightbox-Me offers several configuration options, enabling you to customize it according to your needs. You can use these options to specify appear effect, overlay speed, lightbox animation speed, z-index, modal CSS, overlay CSS, etc. It also provide onLoad and onClose call back functions for further customization.

Features

  • Handles overlay resize when the window is resized
  • Handles overlay size in cases where the document is smaller than the window
  • Handles position: fixed in all browsers
  • Position: fixed automatically swaps to position: absolute when the window size is smaller than the modal, so the user can scroll to see the contents
  • Tiny footprint (just over 1000 bytes gzipped & compressed)
  • Small DOM overhead (adds 1 DOM element for the overlay)
  • Dynamic iFrame shim is created and destroyed for the IE 6 select box peek issue (tested and working on https pages)

Developed by Buck Wilson; Lightbox-Me is available for download under under Apache License, Version 2.0.  You can find further information, demo & download on Lightbox-Me Website.

Similar Posts:

You can also stay updated by following us on Twitter, becoming a fan on Facebook or by subscribing to our FriendFeed.

Tags: , , , , , ,

Copyright © 2010 Answer My Query All rights reserved. Maintained by Orange Brains .