I have a js document that is call a css document to produce a friendly
print version. They will only work if they are inside of the calling
folder.  Any ideas?

 

Calling path: <script type="text/javascript"
src="../../../includes/print.js"></script>

 

Script:

function printVersion(){

 
newwindow=window.open("","","toolbar=no,width=600,height=600,location=no
,scrollbars=yes,menubar=yes,resizable=yes")

            newdocument=newwindow.document;

            newdocument.write("<html><head><link type=\"text/css\"
href=\"print.css\" rel=\"StyleSheet\" />");

            newdocument.write("</head><body bgcolor='#FFFFFF'>");

            if (document.getElementById('divMainBody')){

 
newdocument.write(document.getElementById('divMainBody').innerHTML);

            }

            else if (document.getElementById('Div1')){

 
newdocument.write(document.getElementById('Div1').innerHTML);

            }

            else {

                        newdocument.write("There is a problem with the
print version of this page.  Please contact the <a
href=\"mailto:[EMAIL PROTECTED]">webmaster</a>.")

            }

 

            newdocument.write("</body></html>");

            newdocument.close();

}

 

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
http://www.esu.edu <http://www3.esu.edu> 

 

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to