User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 403,200 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,522 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 753 | Replies: 0
Reply
Join Date: Apr 2008
Posts: 1
Reputation: WebSultan is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
WebSultan WebSultan is offline Offline
Newbie Poster

Print.Window + file.aspx

  #1  
Apr 24th, 2008
Is there a way to modify this script to print current window & a seperate web file? The code below only prints the entire page. But, I need the function to include the entire page after the form data is submitted, plus an additional "terms and conditions" page which is a different web file. Page Link - http://www.pmcsonline.com/rx-apha.aspx



  1. <script language="JavaScript" type="text/javascript">
  2.  
  3. <!--
  4.  
  5. function printPage() {
  6. if (window.print)
  7. window.print()
  8. else
  9. alert("Sorry, your browser doesn't support this feature.");
  10. }
  11.  
  12. // -->
  13. </script>
Last edited by peter_budo : Apr 26th, 2008 at 2:26 pm. Reason: Keep It Organized - please use [code] tags
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 4:25 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC