Archive | Solution RSS feed for this section

Dynamic table Sorting in Php using Jquery

16 Sep

3

Introduction

When we have huge tabular data to display in web, the best solution is to use ‘Tables’.Making it more user friendly will be appreciated. One of the ways is to include “Data sorting”. Where in recent trends we can use ‘Jquery’ to achive this more effectively.

Html & Jquery sorting into Php & Jquery sorting

We are going to use the tablesorter for static content from http://tablesorter.com/docs/

Setting up things

So, what are all the needs for applying Jquery table sorter for dynamic content? below is the example code can be copied shows the scripts to called and fuctions to be written in the head section of the HTML page.

Read More

Be careful when adding Comment to your code in CSS

3 Sep

Why,

Because,I have spent a full day with the small mess.

The small mistake in CSS Kills my Productivity (God! I got the solution and I am here sharing my experience so you won’t to that mistake).

What I did?

  • CSS works perfectly in IE when I use the below code
<!- - This is my Commnet - ->

body {background-color:red;}

#my_id { background-color:green;}
  • But in Firefox the next line of style below the comment won’t work

Say, I have added comments in each CSS files like this.


<!- - This is my Commnet - ->

body {background-color:red;}

#my_id { background-color:green;}

Where the body {background-color:red;} not seems to be working, at first I am too confused …after long battle zzzzz… I found the solution friends!.

The Solution is

  • We have to write comments as follows.

/*Comment Line*/

body{ background-color : red;}

To Conclude, IE and other Browsers accepts this comment format<!- – comment- ->,but the correct format to comment is /*Comment Line*/


<!- - This is my Commnet - ->

body {background-color:red;}

#my_id { background-color:green;}

Suggestion: Please stick with the CSS basics, mainly we developers are keen in coding where we work with major CMSs like WordPress, Joomla, than the design.So we are not spending time to learn and remember the very basics.

How to Integate Pagination in WordPress without Plugins

30 Aug

How to Integate Pagination in WordPress without Plugins

Many of us will be in this situation, where we have to split the content into multiple pages for better accessibility. Luckily wordpress supports pagination concept and we can implement it on the fly using this simple code below

<?php next_posts_link('&laquo; Older Entries') ?><?php previous_posts_link('Newer Entries &raquo;') ?>

Where in recent days we used to see paginations with numbers, below are few beautiful examples.

Read More

Guidelines for Slow Internet Connection Users

6 Jul

Guidelines for Slow Internet Connection Users

How to download your favorite media like music, videos with slow internet connection? This is possible even if are using slower internet connections like mobile internet (less than 115kbps). How? First we decide what content we are downloading and take appropriate actions wisely.

Read More