Content feed Comments Feed
Showing posts with label jQuery. Show all posts
Showing posts with label jQuery. Show all posts

Creating Bar Charts With MooTools And jQuery

Posted by oldx3 Wednesday, February 17, 2010



Ivan Lazarevic is sharing 2 different plugins for creating bar charts with jQuery & MooTools:
Both plugins can create simple or stacked bar charts & data to be displayed is loaded with an array.

jqBarGraph has support for animated loading of the charts however mooBarGraph offers more features like:
  • url bars
  • info boxes (interactive charts)
  • negative values
  • AJAX data loading
They are both very easy to use & support all major browsers.

Requirements: MooTools or jQuery
Compatibility: All Major Browsers
Website: http://workshop.rs/2010/02/moobargraph-ajax-graph-fo...
Website 2: http://workshop.rs/2009/12/jqbargraph-jquery-graph-p...
Demo: http://workshop.rs/projects/moobargraph

Animated Reordering And Filtering Of Items: jQuery Quicksand

Posted by oldx3 Monday, February 15, 2010

Quicksand is a very functional jQuery plugin for reordering and/or filtering items with a nice shuffling animation.

It simply replaces a collection of items with another & only requires the sets to be provided which can be done in multiple ways:
  • using plain HTML, like an unordered list
  • downloading data by an Ajax call
  • transforming HTML items by JavaScript
Quicksand also comes with few options like setting the duration or the easing type of the animation (optionally, Easing plugin can be used for more easing types).

Requirements: jQuery 1.3+
Compatibility: All Major Browsers (except IE6)
Website: http://razorjack.net/quicksand/
Download: http://github.com/razorjack/quicksand/

Attractive Forms With jQuery: Uniform

Posted by oldx3 Wednesday, February 10, 2010



Uniform is a jQuery plugin that enables you to control the look & feel of form elements (checkboxes, drop down menus, radio buttons & file upload inputs).

It is unobtrusive & works by hiding the original elements + replacing them with custom ones.


Uniform is very easy to use & can be set to convert every form element on the page or any specific ones.
The plugin has theming support & comes with a theme kit to quickly create unique forms.
Requirements: jQuery 1.3+
Compatibility: All Major Browsers (except IE6)
Website: http://pixelmatrixdesign.com/uniform/



Formwizard is a jQuery plugin which can instantly convert your standard forms into wizard-like interfaces.

Once it is applied, users will be able to fill the form step-by-step (which is nice for big forms) & it becomes possible to show different steps according to the input values.



It only requires a few markup updates like wrapping every step with elements that has id tags: "firstStep, "secondStep", etc & adding class tags: "step".

Formwizard also plays nice with the popular validation & form plugins that will help enabling client-side form validation & Ajaxed submissions.

Requirements: jQuery
Compatibility: All Major Browsers
Website: http://thecodemine.org/

Brosho: A jQuery Plugin For Designing In The Browser

Posted by oldx3 Tuesday, January 26, 2010

Brosho is a jQuery plugin which helps you to minimize the editor-browser switching while creating/editing websites.

It enables you to select elements in a webpage, edit the CSS properties with an in-browser editor & see the outputs instantly (similar to editing with Firebug).




Once you are satisfied with the changes implemented, copy-pasting the new code to the CSS file is enough.

The editor has few functions that makes the usage easy like:
  • setting the position (top-bottom-left-right)
  • enable/disable element highlighting
  • one-click CSS code generation
It may be a good idea to disable links while using Brosho as a selected element can forward you to a new page & selections can become useless. There are code examples for this in the comments of the resource.

Requirements: jQuery
Compatibility: All Major Browsers
Website: http://usejquery.com/posts/8/brosho-design-in-the-br...
Demo: http://demos.usejquery.com/brosho-plugin/index.html
Download: http://github.com/mustardamus/brosho-plugin/tree/mas...

Accessible Widgets: jQuery-Accessible-RIA

Posted by oldx3 Sunday, January 17, 2010

jQuery-Accessible-RIA is a set of accessible, usable & easy to implement widgets that are strictly WAI WCAG 2.0 and WAI ARIA compliant.

The widgets provided are:

  • lightbox
  • live form validation
  • tabs
  • sortable tables


jQuery-Accessible-RIA is built using the jQuery UI & works out-of-the-box. Also, they can be highly customized.

For older screen readers, it includes a workaround & for anyone willing to dive into the code, it is fully-commented.

Requirements: jQuery 1.3.2+ & jQuery UI 1.7.1+
Compatibility: All Major Browsers
Website: http://wiki.github.com/fnagel/jQuery-Accessible-RIA
Download: http://github.com/fnagel/jQuery-Accessible-RIA/downl...

Pagepeel Type Banner Application: Pageear

Posted by oldx3 Wednesday, January 13, 2010

Pagepeel, or the "magic corner" type banners were invented by Visualsteel.
They create a new banner area for websites without effecting the current banner areas and easy to implement. On the other hand, pagepeel banners have a relatively high "click per view ratio".

Including Pageear to the websites requires the steps below:

- Download Pageear files.
- Unzip the filed in a folder.
- Create to images with sizes 100×100 and 500×500. 100×100 sized image is the one which will be shown when Pageear is closed and 500×500 will be shown when user mouse overs the Pageear banner. You can pageear_b.jpg ve pageear_s.jpg files as an example. BTW, .GIF and .PNG are not supported.
- Open the Pageear.js file wit a text editor and update the paths to the .JPG and .SWF files depending on your setup.
- Include Pageear.js and AC_OETags.js in to the webpages where Pageear banner will be displayed (example below).
- Place the writeObjects() javascript function under your body tag.
- That’s all.
Pageear can also be implemented easily with the ready to use Wordpress plugin, Joomla module or Typo3 extension (download links below).

Html Code Example

<html>
<head>
<title></title>
<script src= " /path_on_your_server/AC_OETags.js " mce_src= " /path_on_your_server/AC_OETags.js " language= " Javascript " ></script>
<script src= " /path_on_your_server/pageear.js " mce_src= " /path_on_your_server/pageear.js " type= " text/Javascript " ></script>
</head>
<body>
<! – Beginning of contents – >
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum
<! – End of contents->

<script type= " text/Javascript " >
writeObjects ();
</script>

</body>
</html>

Website: http://www.webpicasso.de/blog/kostenloses-pagepeel/
Download: http://www.webpicasso.de/blog/wp-content/plugins/Dow...
Joomla Module: http://www.webpicasso.de/blog/joomla-pagepeel-pageea...
Typo3 Extension: http://www.webpicasso.de/blog/joomla-pagepeel-pageea...

Smart Floating Banners

Posted by oldx3

Floating a banner or content definitely increases the visibility of them. But have some limitations (which we’ll remove).
In general, floating banners are used when there is no other content at their column as they are always at the "float" (position:fixed) state.
This is a better & smarter solution that will float the banners when needed, re-position them and can be used in any type of banner – content combinations.
And, best of all, you don’t need to set any fixed heights in the code.

We’ll be using jQuery but these simple functions can easily be ported to other JavaScript frameworks.
Before reading further, here are the examples. Check both example 1 and example 2 and scroll down.

Logic of this smart floating banners:

  • Position of element (probably div) holding the banners won’t be mentioned as "fixed" in the beginning.
  • We insert an identifier element to understand the exact original position of the end of the contents.
  • When a user scrolls, with a JavaScript function, we check if the last part of the content is visible or not.
  • If not visible, we set the position of the div holding the banner to fixed.
  • If visible we re-set the position to relative (or absolute).
  • That’s all.

The HTML:

A standard 2 column webpage.
<div class="mainWrap">
<div class="leftWrap">contents</div>
<div class="rightWrap">
<div class="banner">banner</div>
<div class="smartBannerIdentifier"></div>
</div>
</div>

The CSS:

The important part is, we are not setting CSS "fixed" position to the banner.
.mainWrap {
width: 500px;
margin: 0 auto;
}
.leftWrap {
float: left;
width: 250px;
background-color: #CCCCCC;
}
.rightWrap {
float: right;
width: 250px;
background-color:#666666;
}
.banner {
width: 250px;
background-color: #FF0000;
}

JavaScript:

We have a function which simply:
  • Understands if the scrolled amount is bigger than the "smartBannerIdentifier" which defines the end of contents.
  • If yes, sets the CSS position of the banner to fixed.
  • If no, sets the CSS position of the banner to relative and "top" to the original value using the smartBannerIdentifier’s offset value.
$(document).ready(function(){
  $(window).scroll(function(){
    if  ($(window).scrollTop() > $(".smartBannerIdentifier").offset({ scroll: false }).top){
      $(".banner").css("position", "fixed");
      $("#banner").css("top", "0");
    }
   if  ($(window).scrollTop() <= $(".smartBannerIdentifier").offset({ scroll: false }).top){
      $(".banner").css("position", "relative");
      $(".banner").css("top", $(".smartBannerIdentifier").offset);
    }
   });
});

Dependencies:

JavaScript function used requires some objects from jQuery 1.2.6+. For lower jQuery versions, you’ll need the dimensions plugin.
Using this JavaScript floating banners you can:
  • Definitely show your banners or content more with a simple non-flickering method.
  • Order your contents and banners in any way and it will work.
  • Can do some special tricks like adding effects when they begin to float or else.
Download JavaScript Floating Banners
Script is tested on major browsers at Windows OS. I’m not sure about the compatibility on Mac and others but must be ok as it uses standard jQuery functions. If you live any problems, just share them at the comments.
P.S. Download includes 2 example files.

Featured Vendor:
Check esigns.com for printing banners online and using their unique banner design tool.
Requirements: jQuery 1.2.6+
Compatibility: IE6 Not Supported Yet
Demo: http://webresourcesdepot.com/wp-content/uploads/file...

Page Peel effects can be very useful as they create new areas -which are mostly used for banners- on websites.
In general, they are created with the help of Flash but Soh Tanaka is featuring a a very nice tutorial on creating a page peel effect with jQuery & CSS.



The logic of the effect is simple & smart. It is created by animating the size & position of a peel image which is originally positioned over the content to be shown.
To see a demo for this nice tutorial, click here.

Requirements: jQuery
Compatibility: All Major Browsers
Website: http://www.sohtanaka.com/web-design/simple-page-peel...
Demo: http://www.sohtanaka.com/web-design/examples/peeling...

Animated GIFs can have up to 256 colors & they are not interactive.
jAni is a lightweight jQuery plugin for animating background images which can be an alternative to animated GIFs (in some cases).
It simply changes the position of a long background image in given distances & speed.



The plugin has few options for controlling it:
  • start, stop, pause
  • speed
  • loop on/off
  • dimensions of the frames
As it will require JavaScript to be enabled, using jAni combined with other JavaScript events (like animating a better-quality Ajax loader) would be very functional.

Requirements: jQuery
Compatibility: All Major Browsers
Website: http://www.ajaxblender.com/jani.html
Demo: http://www.ajaxblender.com/script-sources/jani/demo/...

feedburner

Enter your email address:

Delivered by FeedBurner

Custom Search