Hide Comments on One Topic

This forum is for general questions about Feedback Explorer and Feedback Server.
Post Reply
DurtyMat
Sr. Propeller Head
Posts: 224
Joined: Wed Aug 22, 2007 8:09 am
Location: ClrH2o, Fl

Hide Comments on One Topic

Post by DurtyMat »

I am trying to hide the comment functionality on the home page of my help system. I figured I could use javascript to hide the <iframe> tag that the comments reside in (which is obv. inserted during the building process)

JS I am using:

Code: Select all

<script type="text/javascript">
                                    function hidit(strId){
                                    var el= document.getElementById("topiccomments").getElementsByTagName("iframe")[0].style.display="none";
                                    el.style.display = el.style.display !=="none" ? "none" : "block";
                                    }
                        </script>
I tried to use it in the topic, but that didnt work, so I tried the masterpage (the MP assigned to the first topic only) and that didnt work ... I figure I am doing something wrong (which wouldnt be surprising :D), so I was hoping to see if anyone else had tried to disable comments on a single topic :(

PS - Sending an enhancement suggestion for that as well :D

PPS - Sending an enhancment suggesting that when I make an enhancement suggestion I can have other people "vote" for it :P
Flare: I bought it ... so that means I can break it, right?
Post Reply