javascript



I've make a simple applet for use javascript function.
When the browser is IE, no problem, but if the browser is netscape 7,
when ... JSObject.getWindow(this); ... the message is ": at netscape.javascript.JSObject.getWindow(Unknown Source) ...".
Why ?


Thanks


import netscape.javascript.*; import java.awt.*;

public class Provajs extends JApplet {

private JSObject window = null;

public void init(){}
public void start(){

window = JSObject.getWindow(this);

String[] message = { "Oggi fa molto caldo!"};
window.call("alert", message);

}

}

--
Questa è una firma automatica di MesNews.
Sito: http://www.mesnews.net


.



Relevant Pages

  • Re: An old Question about Multi Processing of Applets?
    ... I want to know If I assign 10 threads in an Applet and run it on a 8- ... Any other important Browser. ... volatile boolean flag = true; ... public void start{ ...
    (comp.lang.java.programmer)
  • SWT browser in Swing JPanel
    ... I am trying to use SWT_AWT bridge to embed the SWT browser in a swing ... JPanel panel = new JPanel; ... button.addSelectionListener(new SelectionAdapter() { ... public void widgetSelected{ ...
    (comp.lang.java.programmer)
  • SWT browser in Swing panel
    ... I am trying to use SWT_AWT bridge to embed the SWT browser in a swing ... JPanel panel = new JPanel; ... button.addSelectionListener(new SelectionAdapter() { ... public void widgetSelected{ ...
    (comp.lang.java.gui)
  • JPopupMenu + Applet in Mac vs. Windows
    ... Now we're testing it on a Mac, and when I move the browser window, the ... JPopupMenu is left behind. ... I haven't been able to test Java 1.5 on a Mac, ... public void actionPerformed ...
    (comp.lang.java.gui)
  • Calling Java applet function upon browser close
    ... I am developing a web application and need to fire an on-close event ... upon the user clicking the "X" button on their browser. ... i had the idea of using a java applet to ... public void init() ...
    (comp.lang.java.programmer)