Pages

Monday, 1 April 2013

JQuery pagination with good css

 

Below is the fully functional pagination which uses this jQuery Pagination Plugin .I have provided some nice pagination css which can be further modified to fulfil the requirement.

 Download example

Below is screen shot of jquery pagination css :

JquertPaginationCss

 Download example

How to use it :

1) Extract the rar.
2) Run index.html.
3) Check pagination.css for the css you liked.
4) index.html contains below jQuery code to initialize the pagination:

Below code demonstrate how to initialize the jQuery pagination and set pagination options.Also it explains how to handle page select event to do some ajax stuff.

 

         
//function will be called when any page is selected.perform some ajax and load the contents in div.
function pageselectCallback(page_index, jq){

//below if is only for demo purpose.
if(page_index ==6 ){
return;
}
alert("Perform some ajax stuff for page number :"+(page_index+1));
return false;
}
$(document).ready(function(){

//set properties of pagination.
var totalEntries = 500;
var options = {
items_per_page:10,
num_display_entries:6,
current_page:6,
num_edge_entries:2,
link_to:"#",
prev_text:"Prev",
next_text:"Next",
ellipse_text:"...",
prev_show_always:true,
next_show_always:true,
callback:pageselectCallback
};

//provide pagination functionality inside specified pagination div.
$("#Pagination").pagination(totalEntries, options);
$("#bootstrap_pagination").pagination(totalEntries, options);
$("#grey_pagination").pagination(totalEntries, options);
$("#orange_pagination").pagination(totalEntries, options);
$("#pagination_1").pagination(totalEntries, options);

});

5)Pagination.js is the pagination plug-in which take care of pagination functionality.


 Download example

If you find this post useful please share and leave a comment below, thanks! :)

Friday, 1 February 2013

Creating new tabs,closing tab,showing tabs,loading contents in tab and more with Bootstrap tabs


Twitter Bootstrap tabs are very light weight and very easy to use with few lines on code.But if you want perform operations like adding new tab ,adding close button to tab and removing tabs then you need to customise as per the requirement.
Below is a sample example which will allow you to perform below operations :
  • Adding new tab
  • Deleting tab
  • Showing tab
  • Adding close icon to tab
  • Getting element from current tab ( example : if there are two tabs having  textarea with same id or same class name then when $("#someId") will return both the text area from these two tabs this method will take care of this )
Note This example uses bootstrap v 2.2.2 and jquery v1.9.
Download Example Here
Below is demo: (Run below fiddle in full screen to see the proper output )


Click below links to see jsfiddle demo :
 Download Example Here

If you find this post useful please share and comments. Thanks you :)

Monday, 3 December 2012

This is test post please ignore it

this is test post please ignore it

Now add the seo related thing via blogger

Thursday, 29 November 2012

Popup Div In Css and Jquery Or pop up windows in javascript


Below I have explained how to create simple html div popup div using css and jquery. Try running example and check simple css and jquery code.

Features :

1) Draggable HTML popup div.
2) Elements behind the popup div will be disabled until popup div is active.
3) Easy customizable css.


Click here to see DEMO In broad window

Cick here view source of example html page 


Required Javascript URL's For Popup Div:

  • <script src="http://code.jquery.com/jquery-1.8.2.js"></script>
  • <script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script>

Below is css ,javascript and html of the example:

Screen Shot of pop up window in javascript:

pop up window in javascript
pop up window in javascript

If the information is useful please comment and share. Thanks :)



Thursday, 8 November 2012

Jquery parent element selection

JQuery parent element selection is always needed code. Below I have listed how to get parent element in jQuery by tags,class,id etc. 

Try Demo Examples


Get first parent by tag name in jquery


$(“#id”).parent().closest(“DIV”);

Get first parent by id in jquery

$(“#id”).closest(“#id”);

Get first parent by class name in jquery

$(“#id”).closest(“.className”);

Get all parents by tag name in jquery

This will return array of all the parent div elements.
$(“#id”).parents(“DIV”);


Try Demo Examples

Also Check below links
How to select child element in jQuery 

If you found this post useful.Please share and comment. Thanks :)

JQuery Child Element Selection

JQuery parent element selection is always needed code. Below I have listed how to get parent element in jQuery by tags,class,id etc. 

Try Demo Examples


Get first child by tag name in jquery ( 3 ways explained)


$("#someId").children().first('div').attr('id'); $("#someId").find('div:first').attr('id') $("#someId").children('div:first').attr('id')

Get first child by id in jquery ( 2 ways explained)

$("#someId").children("#idToFind:first"); $("#someId").find("#idToFind:first");

Get first child by class name in jquery

$("someId").find(".someClass:first");

Get all child by tag name in jquery

This will return array of all the child tr elements inside the table.
$("#someDivId").find("#myTable tr")


Get all first td's of every row in table in jquery

This will return array of all the first child td elements inside every row of table.
$("#myTable tr td:first-child")


Try Demo Examples

Also Check below links
How to select parent element in jQuery 


If you found this post useful.Please share and comment. Thanks :)

Wednesday, 7 November 2012

Best JQuery Grid Plugins And JQuery Tables

Showing data in grid is the basic requirement all the time.Once the grid is ready, other necessary features gives good shape to grids like :

  1. Sorting grid columns
  2. Adding check boxes or other fields to the column
  3. Having constant headers (This is many time a basic requirement of the data grid)
  4. Loading data to data grid from xml,jason object via ajax call.
  5. editing and saving details in the grid.
  6. Free
  7. Many more.


Below I have listed the best JQuery Grid Plugins which full-fills above requirement and features of grids:



1) jQuery Grid Plugin – jqGrid
This is the most popular and most efficient free JQuery Grid Plugin.Provides very nice documentation for customization.This grid is my favorite one.

Features: 
1) Supports XML,Jason,Arrray
2 )Ajax support
3) Well documented and good customization examples.
4) Demo’s with php support.
5) Many more.


        DEMO AND DOCUMENTATION

         Note * : JQuery grid is not free only 30 days of trial is available. Please check commercial licenses details.jQuery Grid Plugin  jqGrid



2)Jquery mleibman/SlickGrid · GitHub


This is one of the other nice free jquery grid.Grid has nice support for colspans..Key features of this grid is nice support for filtering grid data.It has nice customisation demos listed.


DEMO AND DOCUMENTATION


Jqury Grid Plugin By Slick Grid
Jquery Grid plugin by Slick Grid


3)JQuery Grid Data Table

Key Features :

    1. Nice Ajax support.
    2. Fully internationalizable.
    3. jQuery UI ThemeRoller support.
    4. Nice colspan support.


    5. CUSTOMIZATION AND DEMO EXAMPLE

JQuery Grid Provided By Data Table
JQuery Grid By Data Table

4)JQuery Data Grid :Flexigrid :


        This simple
easy to use JQuery Grid with nice UI, which comes with very less configuration and basic features.

DEMO
JQuery Data Grid By Flexigrid
JQuery Data Grid :Flexigrid



5)Jquery Grid : JTable (JQuery Table)    :

This is one of the nice jquery grid plugin which needs some nice custom css. This has almost all the features.Listed below some key features:

Key features :
  • Supports server side paging using AJAX.
  • Supports server side sorting using AJAX.
  • Row expanding feature is very nice
  • Theme Changer
  • Well updated and stable
  • Many More:
DEMO AND DOCUMENTATION
Jquery Grid By JTable (JQuery Table)
Jquery Grid By JTable (JQuery Table) 





6) JQuery Table : WATable 

This simple grid and easy to use grid comes with very less configuration.

          DEMO and DOCUMENTATION
JQuery Table By WATable
JQuery Table By WATable


7) JQuery Data Grid : INGRID 


This is simple jquery data grid. This grid is not updated from long time.

Demo And Documentation


JQuery Data Grid By INGRID
JQuery Data Grid : INGRID


8)Jquery Excel Table : Handsontable


This jquery table works like excel spreadsheet. If you want to implement excel like features then use this Jquery datagrid.

Features :

1) Simple spreadsheet and easy to configure
2) Nice simple  UI
3) Supports Ajx
4) XML,JASON suppot
Jquery Excel Table By Handsontable
Jquery Excel Table By Handsontable

If you want to implement just sorting feature use this jquery grid plugin.

DEMO AND DOCUMENTATION

Jquery Grid Plugin - Table Sorter
Jquery Grid Plugin - Table Sorter
This provides many excel sheet like features:

DEMO


Jquery Grid by JQuery Sheet



11)Jquery Grid: Tree Table


This jquery table plugin provide tree structure inside table like folder hierarchy.


          DEMO

Tree Structured JQuery Data Grid
Tree Structured JQuery Data Grid

12)Below are some more grids which has some very basic features:


    1. Jquery Data Grid For Filtering Data By column : This grid filters data by column.
    2. Best colspan manager Jquery Data Grid : If you have data greed and you want manage colspans efficiently then use this grid.
    3. tGrid
    4. Nice Table Sorter JQuery Data grid plugin : This provides animated table sorting and animated pagination.


    Non-Free JQquery Data Grids

    Below Listed Some fully featured well documented non-free JQuery data grid :

    1) Juery Easy UI grid :
    This is most efficient grid having all the features with well documentation.



     



    2) JQuery Grid By JQWidgets : Below is full featured grid by JQWidgets


    If you find this post useful please share and leave a comment below, thanks! :)