How I made the sorting column headers to appear clickable.
This is no rocket science, but stillI fell like contribute something back.
This was added to the source:
function sortMe() {}
And this is how I set my headers:
for (index = 0; index < columns; index++) {
obj.setColumnProperty(
"text",
"<a href=\"javascript:sortMe()\">" + header[index] + "</a>",
index);
}
The now header appears to be clickable.
How to get hold of the number of columns and how get hold of the header names is left to the reader.
This was added to the source:
function sortMe() {}
And this is how I set my headers:
for (index = 0; index < columns; index++) {
obj.setColumnProperty(
"text",
"<a href=\"javascript:sortMe()\">" + header[index] + "</a>",
index);
}
The now header appears to be clickable.
How to get hold of the number of columns and how get hold of the header names is left to the reader.
MattiasF
January 18,