aspose file tools*
The moose likes Java in General and the fly likes open another browser instance. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "open another browser instance." Watch "open another browser instance." New topic
Author

open another browser instance.

arul narayan
Greenhorn

Joined: Sep 26, 2000
Posts: 17
Hi all,
I am using getAppletContext and showDocument methods to open another instance of the browser with a particular URL from an application that runs in the kiosk mode. But I want the new browser window to open in non-kiosk mode (i.e., with titlebar,menubar,toolbar etc). Can anyone tell me how to open the new browser window with these browser features inspite of the original window being in kiosk mode ?
Thanks in advance,
arul.


arul.
Harish Kashyap
Ranch Hand

Joined: Jun 14, 2000
Posts: 118
hi
see i'm not aware of this kiosk mode. i don't know what it is. but i think your problem can be solved using javascript.
if u use javascript then your problem will be solved.
just u need on your system is netscape navigator

do this.

...
import netscape.javascript.JSObject;
....
..
..
..
.

JSObject win = new JSObject(this);

win.eval("window.open('url','name>','width=... height=...')");

....
....
...
u need the above imported package in your classpath.
so your classpath will have one extra line--

c:\netscape\communicator\program\java\classes\java40.jar

Harish
arul narayan
Greenhorn

Joined: Sep 26, 2000
Posts: 17
Hi Harish,
Thanks for replying. I have been trying various methods including the method suggested by you. But I have problems in the javascript method also as I have posted in the JavaScript forum in this site. The win object does not get created and is null always. Can you tell me what could be the reason?
Kiosk means opening the application or URL in full screen mode without any browser features like Tilte bar, menubar, location,toolbar, status etc. All you will see is the site occupying the full screen. My application runs in this mode and I am trying to open another instance in non-kiosk mode i.e., with all browser features.
Thanks,

------------------
arul.
Harish Kashyap
Ranch Hand

Joined: Jun 14, 2000
Posts: 118
hi arul
thanks for telling me bout kiosk mode.
if win object is null always it must be throwing some exception while creating. well the only thing i can suggest u is to refer javascript by o'reilly.
bye
harish
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: open another browser instance.