logo

New Response

« Return to the main article

You are replying to:

  1. Just checked it works in ie 5.0 to;

    Here is my code; it runs in the Onload event; In the stylesheet i set the divEmbeddedView to invisible so that when it loads it doesn't show for a second. Only after the Onload i make it appear. The view is surrounded by: <DIV ID="divEmbeddedView"> VIEW </DIV>

    function CheckNoDocuments() // function to replace the 'No documents found' message {

    if ( document.getElementById("divEmbeddedView").innerHTML.indexOf("No documents found") > 0) { document.getElementById("divEmbeddedView").innerHTML = "<BR><CENTER>Place your message here</CENTER>" } ; document.getElementById("divEmbeddedView").style.display="inline";

    }

    An alternative would be to use window.document.all.divEmbeddedView.style.display instead of the getElementByID property

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: