Link to home
Create AccountLog in
Avatar of nphnhi
nphnhi

asked on

open new window from an applet

Hello,
How to open new window from an applet.
I have an applet with one button "Edit". On click this button, I want to open new window. I used:
getAppletContext().showDocument(new URL("javascript:window.open('/eportfolio/form/editchart.jsp?type=5&chart=5', null, 'width=720, height=400, scrollbars=1, status=yes');"));
It will open new window, but the parent window (I mean the page where this applet displayed) will change the URL like: javascript:window.open('/eportfolio/form/editchart.jsp?type=5&chart=5', null, 'width=720, height=400, scrollbars=1, status=yes');
Please help me
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

>>I used: getAppletContext().showDocument(new URL("javascript ....

Why not just use a normal url?
Avatar of nphnhi
nphnhi

ASKER

If you use a normal Url, the new window will have a toolbar, status bar.... but I don't want to have them.
Not entirely sure that an applet would support a JS url.
>>Not entirely sure that an applet would support a JS url.

Until you can determine that question with certainty, i would try to work around it by getting the applet to actually call JS by ...? (you know what - i can't remember the name of the technology ;-)) JSObject
Avatar of nphnhi

ASKER

I dont understand what you mean :(
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
IOW, get the applet to call a JS function that opens the kind of window you want
> get the applet to call a JS function that opens the kind of window you want

It already is ???
>>It already is ???

No, AFAICT it's trying to create an unsupported URL