Ajax Updates

Ajax Updates


Grid Column Sizing

Posted: 12 Dec 2009 11:50 AM PST

This plugin, applied to a number of HTML tables, provides the behaviour of resizing their columns

# This plugin, applied to n-tables of an HTML page, provides the behaviour of resizing columns by dragging the mouse or double-clicking over a “handler hint”.
# I want it to be FAST, non-intrusive, and for HUGE tables (intranet applications, as well as for internet)
# If you double-click, the column collapse (to minimum width property); if you repeat double-click, the column returns to previous width status, and viceversa.
# If the plugin “jquery.cookies.pack.js” is present and the property “cookies” is true, then the columns width status are preserved from load to load.
Compatibility
Tested in IE6+, Firefox 2+
Release Notes
[25 July 2008] Release version 0.5
Bugs / TODO
(buggy) double-click behaviour is tricky
to update to future jQuery UI module or interface version 2
to indicate visually pixels width, while dragging
to use dinamic methods like “create” / “destroy”
to use dinamic methods like “collapse/expand X column/s”
possibility of defining columns width default values for initiating
to improve documentation and demos
(perhaps?) to change “jquery.grid.” into “jquery.table.” as the connotations of “grid” word are too ambitious…

Javascript:

  <script type="text/javascript" src="jquery-1.1.3.1.pack.js"></script> <script type="text/javascript" src="jquery.dimensions.pack.js"></script> <script type="text/javascript" src="jquery.cookies.pack.js"></script> <script type="text/javascript" src="jquery.iutil.pack.js"></script> <script type="text/javascript" src="jquery.idrag.js"></script> <script type="text/javascript" src="jquery.grid.columnSizing.js"></script>  

CSS:

 table.jquery_columnSizing{ 	table-layout: fixed; 	width : 100%; 	} table.jquery_columnSizing tr td{ 	overflow : hidden; 	}   



Demo: http://www.ita.es/jquery/jquery.grid.columnSizing.htm
Download: http://www.ita.es/jquery/jquery.grid.columnSizing.pack.jsjquery javascript grid columns collapsible collapse plugin
Source: http://www.ita.es/jquery/jquery.grid.columnSizing.htm

Related Listings:

  1. Jquery.grid.rowSizing # This plugin, applied to n-tables of an HTML page,...
  2. jQuery Column Filters This jQuery plugin for a quick way of allowing table...
  3. DataDrop – Drag Grid Data in From a Spreadsheet with ExtJS Andrea Giammarchi came up with, it was so cool –...

Jquery-Droppy

Posted: 12 Dec 2009 11:24 AM PST

Smooth, nested drop down menus from semantic markup. Simple integration, limited flexibility – you’ll either love it or hate it.
Quick and dirty nested drop-down menu in the jQuery styleee. I needed a nav like this for a recent project and a quick Googling turned up nothing that really suited, so droppy was born. It hasn’t been designed with flexibility in mind – if you like what you see, great, integration should be a breeze – otherwise I’d look for something more configurable elsewhere.

Usage

No mandatory configuration options or nothin’ here, just use include the Javascript/CSS resources and insert the following code in your document head, or any other suitable place:
Javascript:

 <script type='text/javascript'>   $(function() {     $('#nav').droppy();   }); </script>  

And here’s some example HTML markup:
HTML:

  <ul id='nav'>   <li><a href='#'>Top level 1</a></li>   <li><a href='#'>Top level 2</a>     <ul>       <li><a href='#'>Sub 2 - 1</a></li>       <li>         <a href='#'>Sub 2 - 2</a>         <ul>           <li>             <a href='#'>Sub 2 - 2 - 1</a>             <ul>               <li><a href='#'>Sub 2 - 2 - 1 - 1</a></li>               <li><a href='#'>Sub 2 - 2 - 1 - 2</a></li>               <li><a href='#'>Sub 2 - 2 - 1 - 3</a></li>               <li><a href='#'>Sub 2 - 2 - 1 - 4</a></li>             </ul>           </li>           <li><a href='#'>Sub 2 - 2 - 2</a></li>           <li>             <a href='#'>Sub 2 - 2 - 3</a>             <ul>               <li><a href='#'>Sub 2 - 2 - 3 - 1</a></li>               <li><a href='#'>Sub 2 - 2 - 3 - 2</a></li>               <li><a href='#'>Sub 2 - 2 - 3 - 3</a></li>               <li><a href='#'>Sub 2 - 2 - 3 - 4</a></li>             </ul>           </li>         </ul>       </li>       <li><a href='#'>Sub 2 - 3</a></li>     </ul>   </li> </ul> 

Droppy supports a single configuration option, speed, for setting the animation time.
Example with custom speed:

 <script type='text/javascript'>   $(function() {     $('#nav').droppy({speed: 100});   }); </script>  

The example CSS file has been split up into three small sections for ease of customisation if you feel like getting your tinker on. As of version 0.1.2, the ‘hover’ CSS class is applied to both < li > and < a > tags inside the menu on rollover, improving skinability with IE6.


Demo: http://onehackoranother.com/projects/jquery/droppy/
Download: http://plugins.jquery.com/files/droppy-0.1.2.zip
Source: http://onehackoranother.com/projects/jquery/droppy/

Related Listings:

  1. nmcDropDown: A Drop-Down Menu Plugin for jQuery Usage You should create your navigation as a nested unordered...
  2. Lightweight Portal Framework using jQuery Netvibes enables individuals to assemble their favorite widgets on the...
  3. JPolite – Ajax Lightweight Portal Framework JPolite is a Lightweight Portal Framework based on jQuery –...

Click Menu using Jquery

Posted: 12 Dec 2009 10:38 AM PST

A clickable dropdown menu with (theoretically unlimited) submenus made out of an an unordered list. It's behaviour is like an application menu (click to open, click to close, stays open even after hovering elsewhere).

  <script type="text/javascript">$(document).ready(function() { 	$('#list').clickMenu(); }); </script>  <ul id="list"> 	<li>Item one 		<ul> 			<li>Subitem one</li> 			<li>Subitem two</li> 		</ul> 	</li> 	<li>Item two</li> </ul>  

More Examples:

 <script type="text/javascript"> $(document).ready(function() {     $.fn.clickMenu.setDefaults({arrowSrc:'arrow_right.gif', onClick: function(){/*do something*/}});     $('selector1').clickMenu(); /* use default values */     $('selector2').clickMenu({arrowSrc:''}); /* dont use an arrow for submenus */     $('selector3').clickMenu({subDelay: 1000, mainDelay: 500}); /* slow menu */ }); </script>   

Available options:

* onClick – function – callback function triggered when a list item is clicked – returning false will stop the default action of the clicked element
* arrowSrc – string – url of the image to be used as an arrow indicating a submenu (e.g. "images/somearrow.jpg" or an empty string if you don't want an arrow)
* mainDelay – string or number – the time to wait before starting the fadein after hovering over a main menu item ("slow", "normal" or "fast" or the time in milliseconds – e.g. 1000)
* subDelay – string or number – the time to wait before starting the fadein after hovering submenu item ("slow", "normal" or "fast" or the time in milliseconds – e.g. 1000)


Demo: http://p.sohei.org/stuff/jquery/clickmenu/demo/demo.html
Download:

Source: http://p.sohei.org/jquery-plugins/clickmenu/

Related Listings:

  1. Click Menu – Jquery Script A clickable dropdown menu with (theoretically unlimited) submenus made out...
  2. ClickMenu Plugin for JQuery A clickable dropdown menu with (theoretically unlimited) submenus made out...
  3. ColumnHover JQuery Plugin Script A jQuery-plugin that highlights whole columns in a table when...

Flection v0.1 using MooTools

Posted: 12 Dec 2009 10:19 AM PST

With Moo.flection you can easily add a Javascript/CSS based cross-browser reflection with true transparency to you images.

It’s based on the Mootools Javascript Framework.

Version number is 0.1 since it’s far from finished. A lot of options for implementation should be added and the code has to be optmized for a real release.

Implementation

You will need mootools v1.1 or higher and moo.flection.js
Example 1

This is the most simple and basic version. All images within any type of block element with the ID ‘reflections’ will gain a nice reflection.
Javascript:

  // create a new instance for reflections. var myReflection = new Reflection( 	'simple_reflection', ); 

HTML:

  <div id="simple_reflection"> 	<img src="./hella_floor.jpg" alt="Hella On Floor"/> 	<img src="./sea.jpg" alt="Sea"/> </div>   

So if we have an image with the following Javascript, CSS and HTML:
Javascript:

 // create a new instance for reflections. var myReflection = new Reflection( 	'css_copied_reflection', );  

CSS

  .funnyimage { 	float: left; 	margin: 50px 10px 30px 20px; 	padding: 5px; 	background: #ff0; 	border: 3px solid #f00; 	border-right: 5px dotted #0f0;  }   

HTML:

 <div><img src="./hella_floor.jpg" alt="Hella On Floor" class="funnyimage"/></div> <div id="css_copied_reflection"><img src="./hella_floor.jpg" alt="Hella On Floor" class="funnyimage"/></div>   



Demo: http://www.setragasj.nl/mooflection/
Download: http://www.setragasj.nl/mooflection/js/moo.flection.js
Source: http://www.setragasj.nl/mooflection/

Related Listings:

  1. Reflection for MooTools Script This is an improved version of the reflection.js script rewritten...
  2. Add Reflection with Reflection.js 1.6 Reflection.js allows you to add reflections to images on your...
  3. Ajax Script – Refelection on Your Images Reflection.js works with your images, logos, icons and dynamic image...

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.