This is a small tweak on what has gone before - so apologies if it has been
done this way and I missed it.
I noticed that the dreaded "No documents found" message still appeared very
briefly, so my colleague Rob Latta came up with the lines necessary to hide it
until the code had caught up.
In the HTML just before the Embedded view
<!-->the line below will hide the result initially in case the "No documents
found" message appears</-->
<div id="view" style="visibility:hidden">
<table width=100% border = 0 cellspacing=2 cellpadding=2 >
Your embedded view is here
</table>
</div>
in the JS Header of your form that the Embedded view resides in, place this code
function checkDocs(){
var v = document.getElementById('view');
// the line below unhides the HTML code just before the Embedded view that
// is in the line '<div id="view" style="visibility:hidden">'
v.style.visibility='visible';
if(v){
var pos=v.innerHTML.toLowerCase().
indexOf("<h2>no documents found</h2>")
// You can change the text in the line below to suit your requirements
if (pos>=0){ v.innerHTML = '<h4>There are no documents to view</h4>';
}
}
// This is an alternative location for the ''reveal' code
// v.style.visibility='visible';
}
in the 'onLoad' event of the same form
checkDocs()
Jake - thanks for all the work that has gone into this site - by you and those
who tweak the contents even further - it has been a great help to me in the
past few months.
This is a small tweak on what has gone before - so apologies if it has been done this way and I missed it.
I noticed that the dreaded "No documents found" message still appeared very briefly, so my colleague Rob Latta came up with the lines necessary to hide it until the code had caught up.
In the HTML just before the Embedded view
<!-->the line below will hide the result initially in case the "No documents found" message appears</--> <div id="view" style="visibility:hidden"> <table width=100% border = 0 cellspacing=2 cellpadding=2 >
Your embedded view is here
</table> </div>
in the JS Header of your form that the Embedded view resides in, place this code
function checkDocs(){ var v = document.getElementById('view'); // the line below unhides the HTML code just before the Embedded view that // is in the line '<div id="view" style="visibility:hidden">' v.style.visibility='visible'; if(v){ var pos=v.innerHTML.toLowerCase(). indexOf("<h2>no documents found</h2>") // You can change the text in the line below to suit your requirements if (pos>=0){ v.innerHTML = '<h4>There are no documents to view</h4>'; } } // This is an alternative location for the ''reveal' code // v.style.visibility='visible'; }
in the 'onLoad' event of the same form
checkDocs()
Jake - thanks for all the work that has gone into this site - by you and those who tweak the contents even further - it has been a great help to me in the past few months.