[jQuery] textarea maxlength plugin not working for textareas loaded via ajax
Hey guys, I'm developing a commenting system for a site and am using the maxlength plugin from Remy Sharp (http://remysharp.com/2008/06/30/ maxlength-plugin/) to limit the comments to a specific length. It works great for textareas that are loaded with the page, but it stops working for textareas that are loaded via ajax (for example when replying to a comment, the reply form is loaded from the backend via an ajax call) I have a feeling this has something to do with binding and this FAQ (http://docs.jquery.com/ Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request. 3F), but I cannot figure it out. Any ideas? Thanks, Konstantin
[jQuery] Re: textarea maxlength plugin not working for textareas loaded via ajax
Ok, through sheer genuis (just kidding), I figured it out... when the form is *successfully* loaded via ajax, simply call the function for the maxlength plugin again: $(textarea.limited).maxlength({ feedback:.charsLeft }); Konstantin On Nov 15, 9:36 pm, Konstantin K kkru...@gmail.com wrote: Hey guys, I'm developing a commenting system for a site and am using the maxlength plugin from Remy Sharp (http://remysharp.com/2008/06/30/ maxlength-plugin/) to limit the comments to a specific length. It works great for textareas that are loaded with the page, but it stops working for textareas that are loaded via ajax (for example when replying to a comment, the reply form is loaded from the backend via an ajax call) I have a feeling this has something to do with binding and this FAQ (http://docs.jquery.com/ Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request. 3F), but I cannot figure it out. Any ideas? Thanks, Konstantin
[jQuery] Re: tablesorter - disabling sorting for a row
Ok I figured it out. It works very nicely. No problems so far. Here's what I did: Inside the thead after the first row with all of the ths, you can add another row with all tds: theadtrth/th./tr trtd/tdtd/tdtd/tdtd/tr /thead tbody You will also have to style this new row via CSS: table.tablesorter thead td { . } Konstantin On Oct 14, 12:44 am, Konstantin K kkru...@gmail.com wrote: I've tried tr class='{sorter:false}'/tr but that row is still being sorted with the rest of the rows... any ideas? On Oct 13, 12:30 pm, Don Dunbar salemd1s...@gmail.com wrote: Hi, you could try adding class='{sorter:false}' to that row. See if that works, it works for thead ths.DED On Tue, Oct 13, 2009 at 3:18 AM, Konstantin K kkru...@gmail.com wrote: Hi folks, I'm using the awesome tablesorter plugin and I have one question: 1. is it possible to have a row not be part of the sorting? For example, I'd like to have a table, where the first row under the headings, is always on top, and doesn't change positions when one of the headings is sorted. Thanks for any tips! Konstantin- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -
[jQuery] tablesorter - disabling sorting for a row
Hi folks, I'm using the awesome tablesorter plugin and I have one question: 1. is it possible to have a row not be part of the sorting? For example, I'd like to have a table, where the first row under the headings, is always on top, and doesn't change positions when one of the headings is sorted. Thanks for any tips! Konstantin
[jQuery] Re: tablesorter - disabling sorting for a row
I've tried tr class='{sorter:false}'/tr but that row is still being sorted with the rest of the rows... any ideas? On Oct 13, 12:30 pm, Don Dunbar salemd1s...@gmail.com wrote: Hi, you could try adding class='{sorter:false}' to that row. See if that works, it works for thead ths.DED On Tue, Oct 13, 2009 at 3:18 AM, Konstantin K kkru...@gmail.com wrote: Hi folks, I'm using the awesome tablesorter plugin and I have one question: 1. is it possible to have a row not be part of the sorting? For example, I'd like to have a table, where the first row under the headings, is always on top, and doesn't change positions when one of the headings is sorted. Thanks for any tips! Konstantin- Hide quoted text - - Show quoted text -
[jQuery] Re: TableSorter and colspans
Hi Christian, I was wondering if you know to when expect the next version that supports colspan? I'm using your great plugin, but need colspan support. Thanks, Konstantin On Sep 7, 4:45 am, Christian Bach christian.b...@polyester.se wrote: Hi Mike. Tablesorter used to support colspan until i found a bug in the checkCellColSpan function. I quick fixed it by removing the function called and forgot to update the docs. I have a new implementation on the way. Regards Christian 2009/9/5 Mike Alsup mal...@gmail.com Ive used the tablesorter alot in my projects, and Ive had the need for this as well. I found a DataTables plugin which looks like it can do colspans, but I havent tried it. I actually looked after reading your post to see if it supported the colspans now, as earlier versions didnt and I see it looks like it does. I figured out how to get this working in my project via TableSorter's textExtraction option. Would like to understand why the docs claim to support this however. -- Christian Bach Polyester* Wittstocksgatan 2nb 11524 Stockholm, Sweden +46 70 443 91 90