File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes launch window options Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "launch window options" Watch "launch window options" New topic

launch window options

Mahesh Mamani
Ranch Hand

Joined: Jun 25, 2001
Posts: 110
Hi All,

I need to a open a window with just the Print button/icon enabled. All the others should be either disabled or not displayed at all. I am currently using the javascript:launchwin() call to open the window.

Thanks in advance,
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You can not disable the button in the toolbar

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33134

As Eric said, you can't disable buttons on the toolbar. But you can hide the whole row of buttons. Then provide the user with a link that calls the print option.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Mahesh Mamani
Ranch Hand

Joined: Jun 25, 2001
Posts: 110
Hi Eric/Jeanne,

I tried the link option as well as the button option, but just wanted to try out this option also, as we can inform that the Windows feature is not working, no problem with our code.

The easy way out to get out of a problem.

I agree. Here's the link:
subject: launch window options
It's not a secret anymore!