Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Printing frames - or only part of a page

Reply
Thread Tools

Printing frames - or only part of a page

 
 
Yitzak
Guest
Posts: n/a
 
      08-21-2007
I apologise as this is not strictly a Javascript issue - I'm new to
web development.

I have a page which is produced dynamically from ASP. Say its a
letter, underneath the letter I want to add a print button and a
couple of links to other pages on the site.

I want to be able to print the page out without printing the Print
button or links.

I thought of sticking the letter's content in a Frame and the buttons
and links outside of frame.
and just printing the frame.

My issue is the <frame src=somefile.html> tag - I don't have a source
html file but want to create dynamic content in a frame.

<frameset cols="100%">
<frame name="frame1">
<HTML>
put some content in here
</HTML>
</frameset>

Is this the wrong approach - is there better way to print just a
certain part of the web page, mark things as "not printable"

 
Reply With Quote
 
 
 
 
Yitzak
Guest
Posts: n/a
 
      08-23-2007
On 21 Aug, 21:44, Randy Webb <HikksNotAtH...@aol.com> wrote:
> Yitzak said the following on 8/21/2007 3:54 PM:
>
> > I apologise as this is not strictly a Javascript issue - I'm new to
> > web development.

>
> > I have a page which is produced dynamically from ASP. Say its a
> > letter, underneath the letter I want to add a print button and a
> > couple of links to other pages on the site.

>
> > I want to be able to print the page out without printing the Print
> > button or links.

>
> Use CSS to style your print document.
> comp.infosystems.http://www.authoring.stylesheetshttp...horing.stylesh...
> --
> Randy
> Chance Favors The Prepared Mind
> comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
> Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/


Thanks just got it to work. Perfect for my simple case.

"You don't know what you don't know"

 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 0 08-21-2007 05:50 AM
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 0 08-21-2007 05:28 AM
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 0 08-18-2007 10:11 AM
frames alternative for refreshing only part of page? Jules HTML 7 09-06-2004 09:45 PM
Link needed to go from a non-frames page to a Frames page, and load a particular frame. How? - Newbe Philip HTML 3 06-28-2004 03:06 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57