Pselus
06-12-2003, 10:34 AM
how do I make the print dialog pop up in javascript?
|
Click to See Complete Forum and Search --> : Print dialog? Pselus 06-12-2003, 10:34 AM how do I make the print dialog pop up in javascript? Khalid Ali 06-12-2003, 10:39 AM <input type="button" value="Print" onclick="window.print()"> this should do it...:D Pselus 06-12-2003, 10:58 AM tried it. tried javascript:window.Print() tried javascript:window.showPrintDialog() tried javascript:window.printpage() tried javascript:Print() tried em all.......they all say the "object doesn't support this method or property" Khalid Ali 06-12-2003, 11:11 AM holly...I thought copying and pasting was easy..but I guess I was wrong. You are not implementing it correctly..please try to take a look at the lineof code I posted. you are using Capital P as compare to small p???? window.print(); Pselus 06-12-2003, 11:23 AM good lord tell me I'm not that stupid......... BAH! I am that stupid that's what I get for not coding for an entire week.....bleh! thx khalid....you always answer my questions promptly Khalid Ali 06-12-2003, 11:32 AM :p You are welcome :p Pselus 06-12-2003, 11:32 AM riddle me this: when printing a webpage there are 4 items which show in the margins: The page title, the page number, the date and the webpage address.....is there any way for me to control this and make sure that one (or all) of these items do not appear? Khalid Ali 06-12-2003, 11:35 AM I think you are talking about page setup settings. On IE6+ Click on file then select "Page Setup" Pselus 06-12-2003, 11:38 AM so there isn't a way to take away the url dynamically? I don't want the url to disappear on every printout from IE.....just the ones from my site. btw....forgive my idiocy....I'm a VB.Net programmer :p Khalid Ali 06-12-2003, 01:59 PM Thats allright... .Net programmers are cool(cus of C# *_*) JavaScript has its limitation as far as its allowed to access system resources.It can not make any changes to the browser or system settings. megavogel 08-14-2003, 06:32 AM Dear all... I wonder if someone did this for MAC users? I did a lot of stuff for Windows users where printing is always an issue. The command window.print() is working within all IE's on Windows but how is it on IE on a MAC? I tried to fire the command on a MAC and nothing did happen. Is there a different command for MAC users or is it just not possible to display a printing dialoge on IE + MAC? Thanks to everybody ! Dan:cool: webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |