ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 23rd, 2000, 10:02 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
CALLING THE PRINT DIALOGUE BOX UP FROM A BUTTON

<i><b>Originally posted by : Martin Burford (mburford@hof.co.uk)</b></i><br />I am desperate to find out how to write a function (most probably using JScript) which will call up the print dialogue box. The function will be linked to a button within the web page I am creating as an onclick event trigger, and when pressed, the print box will appear, allowing users to print off that specific page<br /><br />Thanks for your help<br />Martin Burford<br />

Reply With Quote
  #2  
Old April 4th, 2000, 10:26 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Shivaji Madhu Sudhanan (shivaji@frontpoint.com)</b></i><br /><html><head><br /><script><br />function printThePage() {<br /> <br /> window.print() ;<br />}<br /></script><br /></head><br /><body><br /><form><br /><input type="button" name="b1" value="Print" onClick="printThePage()"><br /></form><br /></body><br /></html><br /><br />Hope this helps.<br />Regards<br />Shivaji<br />------------<br />Martin Burford at 3/23/2000 8:02:04 AM<br /><br />I am desperate to find out how to write a function (most probably using JScript) which will call up the print dialogue box. The function will be linked to a button within the web page I am creating as an onclick event trigger, and when pressed, the print box will appear, allowing users to print off that specific page<br /><br />Thanks for your help<br />Martin Burford<br />

Reply With Quote
  #3  
Old April 12th, 2000, 02:35 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Ben Timby (btimby@netdirect.net)</b></i><br />That will work fine in Netscape, but what about the most popular browser, IE?<br /><br />For an example of how to use Javascript, and client-side VBScript to print from BOTH browsers, visit one of the sites that I developed at:<br /><br />http://www.saveetc.com<br /><br />it is a coupon site, just choose a coupon, and you will see a print button, view the source, and steal my code. HTH<br /><br /><br />------------<br />Shivaji Madhu Sudhanan at 4/4/2000 8:26:39 AM<br /><br /><html><head><br /><script><br />function printThePage() {<br /> <br /> window.print() ;<br />}<br /></script><br /></head><br /><body><br /><form><br /><input type="button" name="b1" value="Print" onClick="printThePage()"><br /></form><br /></body><br /></html><br /><br />Hope this helps.<br />Regards<br />Shivaji<br />------------<br />Martin Burford at 3/23/2000 8:02:04 AM<br /><br />I am desperate to find out how to write a function (most probably using JScript) which will call up the print dialogue box. The function will be linked to a button within the web page I am creating as an onclick event trigger, and when pressed, the print box will appear, allowing users to print off that specific page<br /><br />Thanks for your help<br />Martin Burford<br />

Reply With Quote
  #4  
Old April 12th, 2000, 04:07 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Shivaji Madhu Sudhanan (shivaji@frontpoint.com)</b></i><br /><br />It also works in IE 5.No problem with that.<br />But still Ben's code is very good.Thanks Ben.<br /><br />Shivaji.<br /><br />------------<br />Ben Timby at 4/12/2000 12:35:19 AM<br /><br />That will work fine in Netscape, but what about the most popular browser, IE?<br /><br />For an example of how to use Javascript, and client-side VBScript to print from BOTH browsers, visit one of the sites that I developed at:<br /><br />http://www.saveetc.com<br /><br />it is a coupon site, just choose a coupon, and you will see a print button, view the source, and steal my code. HTH<br /><br /><br />------------<br />Shivaji Madhu Sudhanan at 4/4/2000 8:26:39 AM<br /><br /><html><head><br /><script><br />function printThePage() {<br /> <br /> window.print() ;<br />}<br /></script><br /></head><br /><body><br /><form><br /><input type="button" name="b1" value="Print" onClick="printThePage()"><br /></form><br /></body><br /></html><br /><br />Hope this helps.<br />Regards<br />Shivaji<br />------------<br />Martin Burford at 3/23/2000 8:02:04 AM<br /><br />I am desperate to find out how to write a function (most probably using JScript) which will call up the print dialogue box. The function will be linked to a button within the web page I am creating as an onclick event trigger, and when pressed, the print box will appear, allowing users to print off that specific page<br /><br />Thanks for your help<br />Martin Burford<br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > CALLING THE PRINT DIALOGUE BOX UP FROM A BUTTON


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway