AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

netscape - js

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian)
View previous topic :: View next topic  
Author Message
Ayrton
Guest





PostPosted: Wed Jul 27, 2005 5:35 am    Post subject: netscape - js Reply with quote



Devo richiamare alcune funzioni javascript da codice java
Ho scritto questa semplicissima applet e con ie funziona, ma nn con
netscape, mi fa problemi a riconoscere l'oggetto this che passo
JSObject.
Cosa posso fare?

import netscape.javascript.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;


public class Provajs2 extends Applet{

public void start(){

JSObject window = JSObject.getWindow(this);
String[] message = { "An alert message" };
window.call("alert", message);
window.call("mostra", message);
}


}

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


Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.