javascript

A

Ayrton

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);

}

}
 
A

Ayrton

Nel suo scritto precedente, Andrew Thompson ha sostenuto :

If I use new URL .....

I've not problem with any kinds of browser, but I need to use JSObject
( JSObject win = (JSObject)JSObject.getWindow(this); ), because I want
read JS variables
 
A

Andrew Thompson

Nel suo scritto precedente, Andrew Thompson ha sostenuto :

If I use new URL .....

I do not know what you mean by that, but I
will expand on my question.

(What is the) URL (of your broken applet)?
(Where can *we* see it?)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top