The fadeOut() fades the content out but doesn't collapse the content. Perhaps there can be an option for that, if it's not there by default? I was trying to hide the content but not delete the table row and all of the animations function weren't doing it.
One more thing I have noticed is that animation functions misplace the content. I have a table : <table > <Tr> <td> Some title </td> <td id='windowbar'> <a href='javascript:minimize()'>-</a> </td> </tr> <tr> <td id='contentpane' colspan=2> blah </td> </tr> </table> The Javascript used is : function minimize() { $("#contentpane").fadeOut("slow"); $("#windowbar").html("<a href='javascript:maximize()'>-</a>"); } function maximize() { $("#contentpane").show(); $("windowbar").html("<a href='javascript:minimize()'>-</a>"); } When I try to maximize() the content, it shows up in the second column and not where it originally was. - Moazzam On Jun 5, 8:28 am, Tony <[EMAIL PROTECTED]> wrote: > infosoft написа: > > > Hi > > > I have a table where I browse the records of the database. I > > implemented a delete button in each row. When I press this button, I > > send an ajax request to the server. If the response is ok, I need to > > delete the row of the table that have the data I was deleted. > > Hi, > > Another possible solution is: when you delete the row at the server to > reload the new data set. This way you will not trouble of the JS code > and will be sure that the row is deleted. > > Regards > Tony