Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sort columns with HTML only

Status
Not open for further replies.

BDNFLNC

Technical User
May 30, 2002
202
US
Hey folks.

I have a table with about 7 colummns. I want to be able to sort the information by clicking the header of the column.

Does anyone know if this is possible just using HTML? Maybe JavaScript?

I know that something database oriented is my best bet here, but I just don't have that option.

Any ideas?

 
this example it kind of lengthy but it should get you started. I'll see if I can also come up with a quicker means
---------------------------------------
{ str = "sleep is good for you. sleep gives you the energy you need to function";
ptr = /sleep/gi;Nstr = str.replace(ptr,"coffee");alert(Nstr); }

 
Thanks onpnt.

Doesn't work here though...may be a MAC/IE 5.2 issue.

No big deal. I am going to wait until I can do it right!

All I need is the DB. I can mix and match the SQL /PHP to get it working then.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top