File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Author

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,
Mahesh
Eric Pascarello
author
Rancher

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

Eric
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29249
    
139

Mahesh,
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.


[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.

Mahesh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: launch window options
 
Similar Threads
Pop up window issue
none of my java applications work with 1.5.0 on mac os 10.3.9
how to alwasy open a new window in front of the parent window?
java script for open jsp file
Stand alone window in jsp