Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2005

Tip: Looking for answers? Try searching our database.

Printing Frames With Javascript

Thread view: 
Lord Vader III - 03 Aug 2005 16:31 GMT
I apologize if this is the wrong group for this but I have looked for
an answer with no luck.  I have the following frame setup on a site I
am working on:

http://img98.imageshack.us/img98/6238/frameprint1lr.jpg

I want to add a java print button in frame 3 that will then print
frames 3, 4, and 5 when clicked (preferably as laid out on screen in
landscape mode).  Is something like this possible?

Thanks.
Chris Smith - 03 Aug 2005 16:45 GMT
> I apologize if this is the wrong group for this but I have looked for
> an answer with no luck.

Unfortunately, this is indeed the wrong group for this.  Java and
JavaScript share surprisingly little, except for their names.  You
definitely can't use Java to print the content of a web browser.

As for JavaScript, it may be capable of doing what you want.  It's
certainly a better bet than Java.  I don't know, though.  You may want
to ask in comp.lang.javascript for more information on that.

Signature

www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation

Hemal  Pandya - 03 Aug 2005 16:57 GMT
> I apologize if this is the wrong group

It is indeed the wrong group.

> for this but I have looked for an answer with no luck.

Where did you look? Did you think to ask on the javascript ng?

> I have the following frame setup on a site I
> am working on:
[quoted text clipped - 4 lines]
> frames 3, 4, and 5 when clicked (preferably as laid out on screen in
> landscape mode).

What is a java print button? You perhaps mean javascript print button
(don't know if that it the right terminology).

> Is something like this possible?

I am sure it is. I have seen many web pages with a Print button. Yahoo
mail print view and gmail come to mind. Also search for print button on
google.

I don't know if setting up landscape mode will be possible. M$ has
Print Templates that are IE specific; these might be able to do this.

> Thanks.

You are welcome. But when (if) you return come with a java question.
Andrew Thompson - 03 Aug 2005 17:11 GMT
> I apologize if this is the wrong group ..

It is, as both Chris and Hemal mentioned.

Unfortunately, they have referred you to the JS group,
and they will not be able to help you either.

Neither JS nor Java can 'kick off' a print from a web
page, otherwise that would become the next 'web spam'.

Business users would end a day's surfing to find 100s
of pages of 'Special Offers' spewed out onto the laser
printer in the next room.

You will find the best way to get what you want
(or the closest you can come to it) is to add this
special bit of 'script' to the page..

<p>Be sure to select 'print all frames' when printing!</p>

HTH

Signature

Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
Featuring Gratuitous Alien Nudity



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.