Sometimes, we don't want our users playing with collapse/expand categories in view on the Web.
The idea is to hide collapse images with a JavaScript function.
Put this code on your view template form: ($$ViewTemplateDefault) after 'ViewBody' field or after 'embedded view'. Don't forget to set text properties to Pass-Thru HTML.
<script>
// hide collapse.gif
// by gunawantw@innocent.com
// put this code after the embedded view
for (i=0;i<document.images.length;i++) {
if (document.images[i].src.indexOf("icons/collapse.gif") > 0) {
document.images[i].style.display = 'none'
}
}
</script>
Requires Free Membership to View
Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.
This was first published in September 2001