Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Collapsible comments

by Anonymous Monk
on Jan 09, 2013 at 15:57 UTC ( #1012515=note: print w/ replies, xml ) Need Help??


in reply to Collapsible comments

unfinished :) https://developer.mozilla.org/en-US/docs/DOM/Node.nextSibling toggleDisplay

javascript:(function(){ var d = document; var InsertToggler = function(tr){ var newa = d.createElement('a'); newa.appendChild( document.createTextNode("*hide*") ); newa.onclick = 'toggle(this.parentElement.parentElement.nextEl +ementSibling)'; tr.firstElementChild.appendChild( newa ); }; var e = d.getElementById('replies_table').getElementsByTagName('tr +'); var a, p; for(var i = 0; i < e.length; i++){ a = e[i]; if( a.className.match(/\breply-body/) ){ InsertToggler( e[i-1] ); } } })();

update: ?node_id=3989;BIT=toggle;D
expRAT
Free Nodelet Hack: Toggle bodies of Old Replies


Comment on Re: Collapsible comments
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012515]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2014-11-24 12:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (141 votes), past polls