Good point you guys. Slap my wrist for not considering this in the first place!
Here's an improved version of the function:
[<br clear="all" /><pre class="javascript">]function PrintBasic() {
// -- basic features
if ( document.factory.printing ) {
document.factory.printing.header = "MeadCo\'s ScriptX Changed This";
document.factory.printing.footer = "";
document.factory.printing.Print(true);
} else {
alert('You need to install the Print Component!')
}
}[</pre>]
If that doesn't work in your IE version, try this line:
[<code class="javascript">]
if ( typeof document.factory.printing != "object" ) {
[</code>]
Jake
-codestore
Good point you guys. Slap my wrist for not considering this in the first place!
Here's an improved version of the function: [<br clear="all" /><pre class="javascript">]function PrintBasic() { // -- basic features if ( document.factory.printing ) { document.factory.printing.header = "MeadCo\'s ScriptX Changed This"; document.factory.printing.footer = ""; document.factory.printing.Print(true); } else { alert('You need to install the Print Component!') } }[</pre>] If that doesn't work in your IE version, try this line: [<code class="javascript">] if ( typeof document.factory.printing != "object" ) { [</code>] Jake -codestore