Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing with frames?

Status
Not open for further replies.

annebooth

Technical User
Aug 25, 2003
15
US
I have a small problem with the page that I am making. The page consists of three frames: a top, left, and a main frame on the right. I have a print button in the top frame and I need it to print the contents of the main right frame. How can I do this?

A little info: I have all of the frame pages set up and working good. I know HTML pretty well. I'm using Adobe GoLive to construct the page. Any assistance would be appreciated.

Thanks,
Anne
 
Not a javascript expert but try parent.framename.print();



Chris Scott
The Whole Computer Medical Systems
 
yup twcman u r correct...

Known is handfull, Unknown is worldfull
 
>> I have a print button in the top frame and I need it to print the contents of the main right frame.

In the [tt]onclick[/tt] attribute of your print button I would assume.

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
yeah (i seem to be always late)
<input type=&quot;button&quot; value=&quot;Print&quot; onclick=&quot;parent.framename.print();&quot;>

Known is handfull, Unknown is worldfull
 
I Tryed It But It Just Keeps Printing the top fram and I need it to print the center fram. a little more help please

thank Ann
 
replace the &quot;framename&quot; clause with the name of the center frame, ie change:
onclick=&quot;parent.framename.print();&quot;>
to
onclick=&quot;parent.CenterFrameName.print();&quot;>


Known is handfull, Unknown is worldfull
 
I did that and all it did was put a box print button that, when pressed, prints off the top banner where it is located.

Thanks!
Anne
 
Did you change &quot;CenterFrameName&quot; to the actual name of your main frame?

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
yeah. did u do it? CenterFrameName must be replaced with what u have in ur frameset code...

Known is handfull, Unknown is worldfull
 
Yes, I changed it to the name of the center frame, which is Calendar. It keeps printing the top banner. Could it be because I am using GoLive? I thought that I had read that you aren't able to do that in their program.

Very confused...
Anne Booth
 
the code please?

Known is handfull, Unknown is worldfull
 
does ur page only have the top banner? and could u post a link to ur page?

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top