Changes

Jump to: navigation, search

JQuery HTML Updater

50 bytes added, 04:26, 19 May 2010
after_update(html, count, target_obj)
==== after_update(html, count, target_obj) ====
Similar to before_update, but called after the html has been placed in the DOM on the page. Not sure what this is useful for, but in In after_update (unlike before_update) you can call JQuery closest() on the html to look up in the DOM if you want. Whereas that's not This could be used for instance to show a previously hidden parent element only if there are umlaut items available in before_update since the html has not yet been placed on the page. :
<code>
updater.add_section_target({umlaut_section_id: "fulltext", selector:"#my_fulltext",
after_update: function(html, count) {
if (count !=0 ) { $(html).closest("div.something").something...show(); }
}
});
Anonymous user

Navigation menu