[jQuery] img tag wrap in p tags
All, im trying to get the syntax down to find all img tags that are NOT surrounded by tags and wrap those img tags in tags. I can get the selector to get all img tags and wrap it in a tag but i need to further take it to disregard the img tags that already are wrapped in pseudocode $(img parent tag not equal to p).each(). thank you for any help you can give me.
[jQuery] Re: tablesorter after a tr.remove()
Do you know the best way to reapply the zebra widget to the table once i remove rows? Ive seen posts on triggering the sorton again with the current sort, but this seems kind of yucky. Is it possible to use the addWidget() to readd the zebra? thanks On Jan 15, 5:22 pm, MorningZ wrote: > Excellent > > btw to note: i've noticed that the tablesorter is MUCH faster with > the new 1.3 version of jQuery, i'd highly suggest using it if > possible the new selector engine really makes this plugin fast > (er) > > On Jan 15, 4:55 pm,dduck1934 wrote: > > > > > Yeah that worked. had to refresh or update the tablesorter's data. > > That was much easier than i thought. > > > Thanks MorningZ > > > On Jan 15, 4:34 pm, MorningZ wrote: > > > > " The tr shouldn't be showing up again at all when i sort it, but it > > > is. " > > > > I'm not sure what you mean by "shouldn't", but the tablesorter plugin > > > is storing all the rows and data on the client and has to be told that > > > the data was refreshed. you doing a tr.remove() removes it from > > > the table, but it doesn't update the tablesorter's data store > > > > This example should be of > > > helphttp://tablesorter.com/docs/example-ajax.html > > > > except that instead of "append"-ing data/rows, you run that code after > > > removing > > > > On Jan 15, 3:44 pm,dduck1934 wrote: > > > > > I have a table that im adding rows to dynamically with jquery of > > > > course, and every row has a click on it. when you click on it, it > > > > removes that row from the table. im using the remove() on that tr. > > > > Now when i apply the tablesorter plugin to that table, i delete a row > > > > like normal, then click the header of the table to resort it, and the > > > > deleted row pops back up, but i can no longer click on that row to > > > > delete it again. its like all the events on that are gone. The tr > > > > shouldnt be showing up again at all when i sort it, but it is. > > > > > anyone have this problem, and does anyone know how to fix this or a > > > > work around? > > > > > thanks, > > > > > Matthew- Hide quoted text - > > - Show quoted text -
[jQuery] Re: tablesorter after a tr.remove()
Yeah that worked. had to refresh or update the tablesorter's data. That was much easier than i thought. Thanks MorningZ On Jan 15, 4:34 pm, MorningZ wrote: > " The tr shouldn't be showing up again at all when i sort it, but it > is. " > > I'm not sure what you mean by "shouldn't", but the tablesorter plugin > is storing all the rows and data on the client and has to be told that > the data was refreshed. you doing a tr.remove() removes it from > the table, but it doesn't update the tablesorter's data store > > This example should be of helphttp://tablesorter.com/docs/example-ajax.html > > except that instead of "append"-ing data/rows, you run that code after > removing > > On Jan 15, 3:44 pm, dduck1934 wrote: > > > I have a table that im adding rows to dynamically with jquery of > > course, and every row has a click on it. when you click on it, it > > removes that row from the table. im using the remove() on that tr. > > Now when i apply the tablesorter plugin to that table, i delete a row > > like normal, then click the header of the table to resort it, and the > > deleted row pops back up, but i can no longer click on that row to > > delete it again. its like all the events on that are gone. The tr > > shouldnt be showing up again at all when i sort it, but it is. > > > anyone have this problem, and does anyone know how to fix this or a > > work around? > > > thanks, > > > Matthew
[jQuery] tablesorter after a tr.remove()
I have a table that im adding rows to dynamically with jquery of course, and every row has a click on it. when you click on it, it removes that row from the table. im using the remove() on that tr. Now when i apply the tablesorter plugin to that table, i delete a row like normal, then click the header of the table to resort it, and the deleted row pops back up, but i can no longer click on that row to delete it again. its like all the events on that are gone. The tr shouldnt be showing up again at all when i sort it, but it is. anyone have this problem, and does anyone know how to fix this or a work around? thanks, Matthew
[jQuery] Re: jdmenu top level links disabled with submenus
Okay i saw there is a disableLink property in the jdmenu, and I am not sure how to call it. var settings = $.extend({ // Time in ms before menu shows showDelay: 200, // Time in ms before menu hides hideDelay: 500, // Should items that contain submenus not // respond to clicks disableLinks: true // This callback allows for you to animate menus //onAnimate:null }, settings); How do I use these settings when i specify these settings with the jdmenu call Here is what i was trying.. $(function(){ $('ul.jd_menu').jdMenu({disableLinks:false}); }); but this isnt working for me. The top level links are still not clickable On Sep 17, 5:54 pm, dduck1934 <[EMAIL PROTECTED]> wrote: > Hey all, > > Im using the jdmenu and when i add some sub menus, the top level menu > item link is disabled. If i try to click it it does nothing, and I > need to have that top level menu item still available to be clicked > on. If anyone has any suggestions, please let me know. > > Cheers, > Matthew
[jQuery] jdmenu top level links disabled with submenus
Hey all, Im using the jdmenu and when i add some sub menus, the top level menu item link is disabled. If i try to click it it does nothing, and I need to have that top level menu item still available to be clicked on. If anyone has any suggestions, please let me know. Cheers, Matthew
[jQuery] Re: jdMenu hides entire menu when top level link clicked
Ive had this problem too. If you havent found a solution there is a post on this here in this group http://groups.google.com/group/jquery-en/browse_thread/thread/59aaa2112bf93fc5
[jQuery] Re: tablesorter add date parser
Is there a quick way to have this parser available for any table i add the tablesorter to, or do i have to add the tablesorter parser each time the tablesorter is used. On one of the pages i have the tablesorter code that applies the parser and the parser code above it.. if i remove the parser code and stick it up in my header, for some reason the parser doesnt function at all. Maybe im getting some js problems i am not catching or seeing.. will see... On Sep 4, 2:35 pm, dduck1934 <[EMAIL PROTECTED]> wrote: > Thank you! > > That seemed to do the trick. I appreciate it greatly. > > Matthew > > On Sep 4, 1:59 pm, MorningZ <[EMAIL PROTECTED]> wrote: > > > btw, the "AlphaNum" has zero to do with this post, that was from a > > previous post i helped out on. i should have removed that to make > > this post more clear
[jQuery] Re: tablesorter add date parser
Thank you! That seemed to do the trick. I appreciate it greatly. Matthew On Sep 4, 1:59 pm, MorningZ <[EMAIL PROTECTED]> wrote: > btw, the "AlphaNum" has zero to do with this post, that was from a > previous post i helped out on. i should have removed that to make > this post more clear
[jQuery] tablesorter add date parser
I was trying to add to the date parser in tablesorter to be able to handle dates formated like DD-MMM-YY (04-SEP-08), but i havent been successful. In the shortDate parser i tried adding the following.. ... var months = {Jan:1,Feb:2,Mar:3,Apr:4,May:5,Jun:6,Jul:7,Aug:8,Sep: 9,Oct:10,Nov:11,Dec:12}; then further down in the if/else if statement i added this... } else if(c.dateFormat == "dd-mmm-yy") { s = s.replace(/(\d{1,2})[\/\-](months[[A-Za-z]{1,3}])[\/\-] (\d{2})/, "$1/$2/$3"); If anybody can assist me in this, id appreciate it. Thanks!! Matthew
[jQuery] bind() with arguments
I had a quick question with the bind() method in jquery how do i use the bind to bind a function with arguments on an click $('#foo).bind('click',clickMe); function clickMe(x) { alert(x); } i thought i could do this.. $('#foo).bind('click',{x:'clicked'},clickMe); but that doesnt work. Im sure this is easy, but i cant seem to find examples of this. thanks for your help. -Matthew
[jQuery] Table Filter help
I have already received some feedback on this, but Im still stuck. I am basically looking to add a table filter to a table by using a dropdown or a series of dropdowns that will filter the data. The first link i was checking out is here. http://book.learningjquery.com/bookstore/news/ i was using that and trying to conver it over to be a dropdown instead, and I got it to work somewhat, but was extremely slow. I can post code if interested. Ive looked at other plugins, but most of them dont do dropdowns and only give you a text field where the user can type in text and it will filter. This is great, but if i could tie it to a dropdown instead, then all is great! Ive looked at the jquery quicksearch plugin as well as this one http://plugins.jquery.com/project/uiTableFilter there are some others on the plugins section that do the filtering as well. If any of you would like to assist me, id appreciate it.
[jQuery] tablesorter addition
Ive been playing with the tablesorter and Ive been attempting to modify some of the tablesorter code in order to be able to use groupings in the table, but i keep screwing it up more. for example COL1COL2 COL3 group1 A B C C A B group2 D E F Z X Y i need to know how i can get the sorting to NOT sort the group1 and group2. Those rows stay static, and the data under the groups will sort according to the group.. so clicking on COL1 will change the display to be group1 C A group2 Z D and clicking on it again reverses it. Hope that makes sense. Any suggestions would be appreciated