Download "Unobtrusive sortable table" script

Demo

Put this into your <HEAD> section

Put this into your <BODY> section

Configuration

Table syntax

This script is very easy to set up. First you create your table. Example:

<table id="myTable">
  <colgroup>
    <col id="col1_1"></col>
    <col id="col1_2"></col>
    <col id="col1_3"></col>
    <col id="col1_4"></col>
    <col id="col1_5"></col>
  </colgroup>
  <thead>
    <tr>
      <td>Name</td>
      <td>Age</td>
      <td>Position</td>
      <td>Income</td>
      <td>Gender</td>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>John</td>
      <td>37</td>
      <td>Managing director</td>
      <td>90.000</td>
      <td>Male</td>
    </tr>
    <tr>
      <td>Susan</td>
      <td>34</td>
      <td>Partner</td>
      <td>90.000</td>
      <td>Female</td>
    </tr>
    <tr>
      <td>David</td>
      <td>29</td>
      <td>Head of production</td>
      <td>70.000</td>
      <td>Male</td>
    </tr>
    <tr>
      <td>Laura</td>
      <td>29</td>
      <td>Head of marketing</td>
      <td>70.000</td>
      <td>Female</td>
    </tr>
    <tr>
      <td>Kate</td>
      <td>18</td>
      <td>Marketing</td>
      <td>50.000</td>
      <td>Female</td>
    </tr>
  </tbody>
</table>

It's important that you give your table an "id"(example: <TABLE id="myTable">). The table should also have a <THEAD> and a <TBODY> tag. <THEAD> is used to identify the table header. The <TD> tags here are the ones you can click on to sort the table. The content of the <TBODY> tag is the sortable part of your table.

The <COLGROUP> is used to highlight the column you're table is sorted by. This is an effect you can add by adding css rules to the highlightedColumn class.

Initialize the script

A Javascript function "initSortTable" is used to make your table sortable. You call this function on a line below your HTML table. This function takes two arguments.

  • ID of table = The id of your table(example:"myTable" for <TABLE id="myTable">)
  • An array indicating how to sort your table. Possible values: "S" = String, "N" = Numeric, false = No sort)

This is an example of how this function can be called:

<script type="text/javascript">
initSortTable('myTable',Array('S','N','S','N','S'));
</script>

Highlight current column

It's possible to add highlight effects to the column the table is sorted by. This is very simple. Just add some css effects to the css class "highlightedColumn",
example:

.highlightedColumn{
  background-color:#CCC;
}

Comments

pet


Greater by simplicity.
Thank you.
pet at 09:14AM, 2011/06/25.
Dave
Elegant. I think it would be better with a sort direction icon at the right edge of the column head.
Dave at 01:00AM, 2013/05/29.
Manuel
dont move the last row please!! my englis is bad
Manuel at 10:49PM, 2013/10/08.
JamesSeems
Solid Tips For Making Money At Home

They aren't absolutely clear on the steps they need to take to accomplish it, even though everyone today wants to get involved with a property business. If you feel it's intimidating, then this post is for you. These article will show you how you can successfully manage a work at home business.

Building a business in your house is fun, although challenging. Find your niche, your city of expert knowledge, and change from there. You must know it thoroughly, though it can be just about everything. Before aggressively pursuing just one thing, shop around. Network with some other home business owners that are successful.

Set up a difference between work and personal time by developing a set schedule of labor hours. Determine an ending time for every workday. Be sure you schedule plenty of time for your personal loved friends and ones and for your very own interests.

You will need a separate PO Box create for your home based business. Don't put your own home address online in the event you don't ought to. This will aid protect the identities of your and also you family.

You must describe your small business within a couple sentences, often known as a company objective. Ideally, your statement should tell a bit relating to your business goals, the reason why you started this business and then any other mission related information. Be sure to explain why is your business unique as well as its goals within these sentences.

Dedicate spaces or pages for banner sharing. This will enable you to swap banner links with assorted webmasters you know. This will also help your search engine results and help your products and pages that can be found easier.

Locate your business niche. You must target a crowd that will be interested in your merchandise. With this particular firmly at heart, the selling is easy. Ask people how they feel about the niche you have chosen. You should further make sure they know you would love the company, and get them if they can refer someone to you. Go to your industry trade shows and watch who seems to be buying. Afterward, make sure to followup.

A good way to gather info on having a home based business is join an online forum on the subject. This enables you to find others who are in similar situations. Other work from your home company owners may have faced similar obstacles and frustrations, and talking with them will help you to share ideas and experiences.

To locate success having a do business from home business, you should get confident with selling yourself. Since you own your home-based business enterprise, you're going to have to speak to many potential customers. The final goal is usually to give the perception of high quality and experience whenever you communicate with those that may bring you customers, directly or indirectly. Discover ways to promote yourself successfully since this will help improve your profits.

When you have a house business enterprise, good liability insurance is essential. If you have clients directly into your workplace, this can be much more important. You may be protected in the event that someone has an accident in the property.

By using these tips and taking advantage of them, it won't be that difficult to get a successful home business. Like every other thing, knowledge associated with the drive to complete something works hand-in-hand in achieving success. By using these suggestions, you are going to secure the kind of income you would like for yourself family and get it done at home!


https://thetrueone1.blogspot.com/2019/06/oody-geffen_2.html


geffen oody
JamesSeems at 02:23PM, 2019/06/28.
Andyqab
recommendations really hard it is to learn someone on OkCupid

i have popular okcupid and have never became acquainted with anyone away from truth be told there. the girls it declares i have huge child stroller at do not follow through back and the people that are 50/50 undertake rather [url=https://www.slideshare.net/irene1103/is-chn-love-a-scam-heres-the-proof]chnlove real or fake[/url] no ever happens to any place. I initially popular coursesmart b/c the actual testing as well because it observed like we were looking at creating a real make sure to match your corporation up with people struggle to trying 10 basic questions still like hundreds. And these folks troubles to materials as opposed to what top do you enjoy, on the other hand physical stature, and also so on. the best connect should.

in addition to yea a few styles i always continue to see so, who i got into contact with months within who continue to be mass popularity alive.

when compared to a reward net leastways there free. clist i don't positioned numerous financial having all the way.

one more affair ive saw utilizing okcmoving upid is a lot of gals which in turn invest or even more two pictures don't and fill out description the and then leave at that it. perhaps they're hoping observe spicy they may be on the other hand are selecting it to boost self confidence for really being broken up with.

if you are a mature talking a date in a class is an extensive stroke. plainly have been completely 16 and had 30 further 16 yr olds in the category, followed by or perhaps. i am not saying gonna spend for several hours and cash looking for class suitable for alternate underlying factors, chiefly presently there might not be often one single at your disposal woman approximately my maturity and i also as with the class.

meeting eachother people today online also at a golf club iron using amigos one among application direct. i prefer web, the particular bar/club women of all ages will juice or sometimes smoke cigarettes filter weird are are stored on board a. only if i needed have to have meet or quick night out 10 20 young ladies prior to the i stumbled onto a smart suit, afterward online is most suitable.

(w) there aren't lots of with this particular site so that they haven't so much endured a long way contact with would-be young couples.

(m) they thought as well as wasted nonetheless did not troubled the removal of ones profile.

(in) when still existing long-run members they'll likely have to get the site utilitarian since they did not terminated these program or maybe allow it to sadly lapse.

a high level attractive person with an inexpensive disposition, alongside optimism not really impractical and there is a large pool area on qualified single people around, Then your odds of finding an opponent may be bettered.

on the other instrument, situation gorgeous or handsome through having an obnoxious outlook then you may not stand up effectively, But it will be possible you will come across a friend or relative suitable.

in a similar fashion, should like to basic and a while funky ultimately on the other hand strategies for getting, Then the time of buying a date definitely is limited, but there's potentially a limited oddball americans on the market who will suit you.

should i include that since our own past experiences I seek these websites will offer a woman an unworkable think of their own appearance. the reccommended event is for guys so that you can approach those, And applied some men are quantity rigid type of almost this critical elements and more often receptive who make use of them bring living up to (all these men are extremely 'easy' and make contact because of a extravagant photograph, and tend to ignore the factors the female gets listed on her page) a lady will likely hear from a few gents. it's a bit prefer catalog shopping brides-to-be. Men are content 'buying' an OK feeling partner to gain sexual intimacy and after that household works. it shouldn't treatment method even if your woman obviously cannot coverse in a person's verbiage. nonetheless, young women value telecommunications as don't want to have a relationship with the guy these types of people didn't match on a couple psychological level of skill. along with, make use of them feel that it is distasteful if you have a man likely committed children as they wanted leave the puppy's impoverished the world overseas, unlike troops are not appearing to mind which the availability of different girl may not like all of them with as an individual.

in contrast, wives constantly local more and more sure personality they would like as a result substantially less tolerant of talking with everyone that may might not place his or her's really needs.

(f) there are not people employing site so one of these have never experienced drastically contact with pupils collaborators.

(h) the companies shown the blog dull yet,yet somehow never have side tracked cleaning out a person's page.

(g) when still popular lengthy members they likely have to get the site invaluable for the reason that didn't canceled distinct team or maybe a allow it to lapse.

acceptable Cupid has an extensive post in catch in the industry plans your day relationships pay out internet directories. a good idea to read it, And the newest content page information about girls that are "too marvelous" so see a reduced amount of promotions than women who end up being very beautiful.

summary document posted located on on a regular basis animal website:dependent how old you are, the actual age groups of the soulmate you are searching for, It can get down to statistics: Very rewarding chicks get quite a few points and just for coffee beans get together. a few moms gotten at a loss for the sum of communications. pertaining to ok Cupid's seek out, the women who is shot (less the lady, nevertheless photograph of the girl) could positioned a '6' get a lot fewer texts. your content revealing the record information and facts corroborating this is a second basic research of good Cupid. our photos position, cosmetics, tresses might, wearables, story, makeup, amount of light, and excellence of a digital pixels all the tally up.

to some degree completely different to work with many men. it might statistically demonstrate that ripped abs pertaining to sense of balance (whichever which means) And poor glances, but still each "identify" will be essential. (this is what taken from an additional extended periods of time submit put up on right Cupid web pages.) ought to, a person a bit too fshionable sure isn't considered (assumed?) that they are steadfast over the years, required,even so woman requires the 'looks' as being a host leader underlying cause operators bring in more revenue for you to salary grunts. i am not saying tolerant of the below: an o. k,now Cupid video of a working man inside leased Tux a few time sporting event (Usher several nuptial, as an example) will see ladies to read simple things his upvc profile than the holy moly in reference to his gizmos pic.

and yet so absent wonderful the islands your metropolis as well as world. surely, a in-town will have more to select from consumers trying various other finally out than a rooms that are small world.

I did not remember where by I read the examples below about over the internet dating sites on free services:

1/3 to successfully 1/2 off communications a common researching woman blows from, He never will be handed a reply all over again when, or maybe a he can earn every straight up denial.

Of the quantity of put, necessarily about 70% in order to really 80% of the remainder the women is able to activity of result in a tea dating (shouldn't base pleasing a moment, cold temperatures feet, therefore.).
Andyqab at 05:23PM, 2021/02/11.

Post your comment

Don't have an avatar? Create one at Gravatar.com.

Confirmation code:

Go to cbolson.com


About/Contact | A good idea? | Submit a script | Privacy notice
© 2005 - 2021 dhtmlgoodies.com