aspose file tools
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
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: 15379
You can not disable the button in the toolbar

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 31567

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]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, 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.

It is sorta covered in the JavaRanch Style Guide.
subject: launch window options