• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSObject and Security

 
Stephan Bardubitzki
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

in order to use Java to JavaScript communication via JSObject do I have to sign the applet?

Thanks in advance.

Stephan
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, the applet doesn't have to be signed. But in the applet tag you may need to add a mayscript attribute, like

<applet name="..." ... mayscript="true">

The Plugin Dev Guide has more information on the subject.
[ June 01, 2006: Message edited by: Ulf Dittmer ]
 
Stephan Bardubitzki
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. This code runs fine in IE(Popupblocker doesn't complain) but all Gecko based browser are treating it as a popup and block it:



Will this not work anymore in the future? (I had that problem with JDK1.5.0_06 and 07)
Are there any other ways to open a new browser window from an unsigned applet without causing the browser to block?
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Possibly it has nothing to do with the applet permissions, but with the popup blocker? I could imagine that a window that's opened out of nowhere (as far as the browser is concerned) would be blocked regardless.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic