Pagination

This post gives the information about pagination.

If website have big content in a topic,then that should be divided into small pages for easy access. you may have lot of post in a topic, paging required for easy accessing of each post.

Suppose there may be 10 post means, we can list each post in each page or list two or more post in each page. This is the decision of the publisher or designers what ever you called.

Pagination may look below

In above pagination build, Page Number, previous and Next shown. Suppose there are 100 pages like below,

100 page links also look some what okay. If there is more than 1000 page links means, pagination create havoc for readers. Its not good to list all links in a page. Better we have to limit the links like 10 per page. See the above First picture.

we are in middle of 100 page like 50 th page ,to go first and last ,We can also add First Link and Last Link for ease access.

To highlight current page or active page,we may highlight the page link a little different by changing font styles like size and background.

In above pagination build we don’t know how many pages are exists, For that we may add additional info to the build like below.

May this post help you to know what is pagination. I may add future post how to do this using php and mysql.Thank you guest for reading my post.

Create Dynamic Javascript Array

Dynamic Array is one where elements can be added dynamically.Below are some ways to add dynamic javascript array elements.

<html>
<head>
<script type="text/javascript">
var family=new Array();
function add()	{
var str=prompt("Add your family member");
if(str!=='undefined' && str!=null && str!='')
family.push(str);
return family;
}
</script>
</head>
<body>
<form>
<h1>Dynamic Javascript Array Examples</h1>
<input type="button" name="add_me" value="Add Member"  onclick="return add();"  class="input_button" />
<input type="button" name="show_value" value="Show Members"  onclick="return alert(family);"  class="input_button" />
</form>
</body>
</html>

From this examples you will definitely understand what is dynamic javascript array.
Click here to understood dynamic javscript with example.Please use console window to run the script.
There will be many ways exist to add dynamic array elements.But i showed 2 examples of what is dynamic array or objects.