I've added a webpart to sharepoint and added a widget using javascript. The javascript displays weather information and a few links. When i view the source of the page I cannot see any of the content of the widget but only the controlling parameters and the javascript. I always thought when viewing page source it would show everthing the page renders. Then when i right click the widget I can see the source contents of the widget. See code below.
When I goto debug mode in IE (f9) I can select some to the weather widget classes and Id's. I want to hide the "helplink" part within the widget and have tried the code below without success. The alert displays but I dont nothing gets hidden
alert("hello"); document.getElementById(helplink).style.visibility="hidden";
Here is partial code of widget. i want to hide "helplink"
<section id="mainContainer" class="box displaybottom posrel">
<article id="nonmap" class="box displaybottom">
<div id="location"><span></span></div>
<div id="date"></div>
<section id="content"><div id="icon"></div></section>
</article>
<div id="maps" class="box displaybottom"></div>
</section>
<footer id="bigfooter" class="box displaybottom posrel" >
<div id="footer" class="">
<div id="moredetail" style="display:none;"><a id="helplink" href="http://www.metoffice.gov.uk/services/weather-widget" target="_blank"></a> <a href="#" id="optionslink"></a> <a id="moredetaillink" href="" target="_blank"></a></div>
<div id="copyright"><span id="copyrightsymbol"></span><a href="http://www.metoffice.gov.uk/corporate/legal/tandc#widget" title="Weather widget terms of use" target="_blank"></a></div>
</div>
<div id="advert"></div>
</footer>