[jQuery] Another tablesortable question

2006-12-04 Thread Barry Nauta
Using the rebind, the table now also sorts correctly after a value change (see 
post http://www.nabble.com/TableSorter--%3E-reinitialise-tf2661122.html )

However, the first column in my table shows a delete icon, clicking on it 
deletes the row. Resorting the table makes the deleted row (I physically 
delete it from the DOM) reappear.

Does anyone have an idea on how to fix this problem?

Tx

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Another tablesortable question

2006-12-04 Thread Andreas Wahlin
Is the rebind only available through some svn magic?
I did a search on resort in the source and found nothing.

I have a simmilar, or perhaps identical, question. I have a table in  
which I wipe the TBODY and replace it quite often, any suggestions on  
how to manage that with the table sorter plugin?
So it's not a question of a value change, but a complete DOM rehaul.  
I suppose I could delete the entire table and redraw it, but that  
would leave memory leakage, right?

Andreas

On Dec 4, 2006, at 11:17 , Barry Nauta wrote:

 Using the rebind, the table now also sorts correctly after a value  
 change (see
 post http://www.nabble.com/TableSorter--%3E-reinitialise- 
 tf2661122.html )

 However, the first column in my table shows a delete icon, clicking  
 on it
 deletes the row. Resorting the table makes the deleted row (I  
 physically
 delete it from the DOM) reappear.

 Does anyone have an idea on how to fix this problem?

 Tx

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Another tablesortable question

2006-12-04 Thread Barry Nauta
I retrieved the latest version from the demo:
http://cbach.jquery.com/demo.html

On Monday 04 December 2006 12:00, Andreas Wahlin wrote:
 Is the rebind only available through some svn magic?
 I did a search on resort in the source and found nothing.

 I have a simmilar, or perhaps identical, question. I have a table in
 which I wipe the TBODY and replace it quite often, any suggestions on
 how to manage that with the table sorter plugin?
 So it's not a question of a value change, but a complete DOM rehaul.
 I suppose I could delete the entire table and redraw it, but that
 would leave memory leakage, right?

 Andreas

 On Dec 4, 2006, at 11:17 , Barry Nauta wrote:
  Using the rebind, the table now also sorts correctly after a value
  change (see
  post http://www.nabble.com/TableSorter--%3E-reinitialise-
  tf2661122.html )
 
  However, the first column in my table shows a delete icon, clicking
  on it
  deletes the row. Resorting the table makes the deleted row (I
  physically
  delete it from the DOM) reappear.
 
  Does anyone have an idea on how to fix this problem?
 
  Tx
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Another tablesortable question

2006-12-04 Thread Andreas Wahlin
Hey, whaddayaknow, works like a charm it seems, though I can't figure  
out why. I still come up with nothing when I search the source for  
resort, nonetheless a simple $(table).trigger('resort') seems to work.

Andreas


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Another tablesortable question

2006-12-04 Thread Barry Nauta
On Monday 04 December 2006 12:54, Andreas Wahlin wrote:
 Hey, whaddayaknow, works like a charm it seems, though I can't figure
 out why. I still come up with nothing when I search the source for
 resort, nonetheless a simple $(table).trigger('resort') seems to work.

Well... that did not do the trick for me, however the solution for me was 
relatively easy:

I had an $(itemId).remove () call that removed the item from the DOM, but 
not from the jQuery object, hence the next resort showed the deleted item 
again.

an $(itemId).empty () call afterwards fixed this problem!

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/