Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple printing problem

Status
Not open for further replies.

Halucin8

Programmer
Aug 17, 2001
9
GB
Hia,
I'm a coldfusion user needing to print a page
:~/ .I'm new to java script and looked up the code.....

<input type=&quot;button&quot; value=&quot;Print&quot; onClick=&quot;javascript:window.print();&quot;>

all im doing is printing out the page, but when you hit the print, it says:-
Object doesn't support this property or method

can anyone help or give some advice,
and tell me why and what this error message means so i don't have to ask silly questions again :-D .

much appreciated

Tammyxx
 
Hiya,

I could run the code without errors but maybe you should use just the following since the onClick already expects a function call.

onClick=&quot;window.print();&quot;

Hope this solves it?

Gtz,

Kristof
 
hia Kristof

Thanks for replying, but even after trying the code below:
<input type=&quot;button&quot; value=&quot;Print&quot; onClick=&quot;window.print();&quot;>
it still says the same thing....any other help?

Thanks again

Tammy xx
 
are you using IE4? if so you would need to include an activex control and a bit if vbscript instead of the javascript command as it is not supproted in IE4.....

or you could upgrade your browser......

otherwise i cant see any reason why your code shouldnt work..

rob
 
Hia Rob

I am using IE4, where i work were due for an upgrade at work soon but i need my programme for the upgrade...could you tell me how to do it? Or could you tell me where i could find out

thanks again

A Very grateful Tammy xx :-X
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top