H
harry
Using IE 5.5 (sp2) - no other
I have a table that need's to be sorted by single column using javascript.
I have the code to do this but because of the attributes associated with the
<tr> element, when the sorted values are copied back in to the table I want
to replace the entire row not just the inner values!
Any ideas why this doesn't work?
var x = getElementByID('myTable'); //
def get's object successfully
alert(x.rows(0).outerHTML);
// before, shows current content
x.rows(0).outerHTML = "<tr><td>please work</td></tr>"; // Just to test,
but goes no further, no error just bombs out!
alert(x.rows(0).outerHTML);
// after
thanks
harry
I have a table that need's to be sorted by single column using javascript.
I have the code to do this but because of the attributes associated with the
<tr> element, when the sorted values are copied back in to the table I want
to replace the entire row not just the inner values!
Any ideas why this doesn't work?
var x = getElementByID('myTable'); //
def get's object successfully
alert(x.rows(0).outerHTML);
// before, shows current content
x.rows(0).outerHTML = "<tr><td>please work</td></tr>"; // Just to test,
but goes no further, no error just bombs out!
alert(x.rows(0).outerHTML);
// after
thanks
harry