HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

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 Dev Shed Forums Sponsor:
  #1  
Old June 9th, 2000, 10:01 AM
smmorrow smmorrow is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: Pennsylvania, USA
Posts: 37 smmorrow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 15 sec
Reputation Power: 9
I have a certificate that is displayed in the browser window, built from a template with substitutions from a database (formatting will be done in Perl, into which I can imbed javascript).
We want the visitor to be able to print the certificate. If I place the link or button to print the certificate on the page, it (of course) prints out along with the certificate. I'd like to avoid that. Any suggestions? I'm wondering if frames might work here (button in one, certificate in the other. selecting button would print contents of second frame only.) but I'm not too familiar with frames.
Also, if it would be possible, I'd love to be able to avoid printing the URL of the site at the bottom of the page. If that can't be done, so be it - but the print button is an absolute must-have.

Thanks in advance for any suggestions.
Sharon

Reply With Quote
  #2  
Old June 9th, 2000, 04:57 PM
rkmarcks rkmarcks is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 81 rkmarcks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via AIM to rkmarcks
Frames will work well here. Try something like:

.
.
.
</head>

<frameset framespacing="0" border="false" frameborder="0" rows="190,*">
<frame name="framename1" scrolling="no" noresize target="targetframe" src="pagetoloadname.htm">
<frameset cols="110,*">
<frame name="framename2" target="targetframe" src="pagetoloadname.htm" scrolling="auto" noresize>
<frame name="framename3" src="pagetoloadname.htm" scrolling="auto" noresize target="_self">
</frameset>
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</body>
</noframes>
</frameset>
</html>

The above is a classic banner, left frame, mainframe layout. The numbers for column= and row= is the size of the columnar or rowbased frame.

You probably want a two frame page. Just delete the left frame.

To not print the url, you might provide instructions to the user to access page setup and change margins, etc. I've not tried it, but it might work.

Reply With Quote
  #3  
Old June 9th, 2000, 06:26 PM
smmorrow smmorrow is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: Pennsylvania, USA
Posts: 37 smmorrow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 15 sec
Reputation Power: 9
Ok, I believe I could figure out a way to produce that code in the script. Then my print button, which normally would cause a window.print to occur (onClick) would have to reference the lower frame? Would that be something like window.frames[1].print - or what?
As I'm sure you can tell, I'm not any more familiar with javascript than I am with frames -
As for your suggestion for not printing the URL, I may try that some day to see if it can be done, but it won't work for me on this project because the user will see a full screen with no toolbars, menu, etc.

Thanks for your help,
Sharon


Reply With Quote
  #4  
Old June 13th, 2000, 01:20 AM
rkmarcks rkmarcks is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 81 rkmarcks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via AIM to rkmarcks
Sorry for not responding earlier. Been busy. Yes. You should be able to print with a line of code as you proposed.

Russ


<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by smmorrow:
Ok, I believe I could figure out a way to produce that code in the script. Then my print button, which normally would cause a window.print to occur (onClick) would have to reference the lower frame? Would that be something like window.frames[1].print - or what?
As I'm sure you can tell, I'm not any more familiar with javascript than I am with frames -
As for your suggestion for not printing the URL, I may try that some day to see if it can be done, but it won't work for me on this project because the user will see a full screen with no toolbars, menu, etc.

Thanks for your help,
Sharon

[/quote]


Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Printing Certificate


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 6 hosted by Hostway