logo

New Response

« Return to the main article

You are replying to:

    • avatar
    • Andy B
    • Posted on Fri 17 Aug 2001

    Just found this site today... what a fantastic resource!

    Here is a method to replace the 'No documents found' message with any HTML you want.

    Put the following function in your JS header and run it OnLoad

    function CheckNoDocuments() { // function to replace the 'No documents found' message if (document.getElementById("view").innerHTML.indexOf("No documents found") > 0) { document.getElementById("view").innerHTML = "--Put your own HTML here--" } // end if } // end function

    Then all you need is a div or span tag enclosing the view: <div ID="view"> --insert your embeded view here-- </div>

    I have only tested this on IE5.5 and NN6 hope this helps.

    Andy B ;-)

    P.S keep up the good work CodeStore.

Your Comments

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