Some did it by using CSS to hide all H2 tags, others used a "Hide when"-formula and some solutions used JavaScript and the proprietary (=evil) innerHTML JS-property invented by MS.
Here is a more W3C standards-compliant version, which should run in all DOM-capable browsers (Mozilla 1.x, Netscape 6.x and MS IE 5.x/6.x, Opera 7, maybe 6). This utilizes the usual view-serving-form (i.e., "$$ViewTemplateDefault") or page and the $$ViewBody field/embedded view.
Copy and paste the script below your view/view field and mark the entire script as pass-through HTML. I hope this works for all standards-compliant browsers and helps your daily business.
<script type='text/javascript'>
<!--
var oH2s = document.
getElementsByTagName('h2');
var oTmp; var oH2;
if(oH2s) {
for(var i=0;I<oH2s.length;i++) {
var oTmp = oH2s[i];
if(oTmp.firstChild.data=='No documents found')
oH2 = oTmp;
}
if(oH2){oH2.firstChild.data='replace this
text with anything.'};
};
//-->
</script>
Do you have comments on this tip? Let
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 October 2003