2005년 03월 23일
JAVA LiveConnect
JavaScript to Java communication :
ㆍ http://wp.netscape.com/eng/mozilla/3.0/handbook/javascript/livecon.htm#1007749
LiveConnect provides three ways for JavaScript to communicate with Java:
Call Java methods directly.
Control Java applets.
Control Java plug-ins.
more...
Java to JavaScript communication
ㆍ http://wp.netscape.com/eng/mozilla/3.0/handbook/javascript/livecon.htm#1007828
To access JavaScript methods, properties, and data structures from your Java applet, import the Netscape javascript package:
import netscape.javascript.*
The package netscape.javascript defines the JSObject class and the JSException exception object.
The author of an HTML page must permit an applet to access JavaScript by specifying the MAYSCRIPT attribute of the <APPLET> tag. This prevents an applet from accessing JavaScript on a page without the knowledge of the page author. Attempting to access JavaScript from an applet that does not have the MAYSCRIPT attribute generates an exception. The MAYSCRIPT tag is needed only for Java to access JavaScript; it is not needed for JavaScript to access Java.
more...
LiveConnect 으로 해본 것은 모든 인터페이스를 스크립트로 구여하여 만든 소켓 사용 채팅이 있었다.
이 방법은 javascript의 많은 부분의 제약을 어느정도 효과적으로 활용 할 수 있는 방법이라 생각되어 진다.
ㆍ http://wp.netscape.com/eng/mozilla/3.0/handbook/javascript/livecon.htm#1007749
LiveConnect provides three ways for JavaScript to communicate with Java:
Call Java methods directly.
Control Java applets.
Control Java plug-ins.
more...
Java to JavaScript communication
ㆍ http://wp.netscape.com/eng/mozilla/3.0/handbook/javascript/livecon.htm#1007828
To access JavaScript methods, properties, and data structures from your Java applet, import the Netscape javascript package:
import netscape.javascript.*
The package netscape.javascript defines the JSObject class and the JSException exception object.
The author of an HTML page must permit an applet to access JavaScript by specifying the MAYSCRIPT attribute of the <APPLET> tag. This prevents an applet from accessing JavaScript on a page without the knowledge of the page author. Attempting to access JavaScript from an applet that does not have the MAYSCRIPT attribute generates an exception. The MAYSCRIPT tag is needed only for Java to access JavaScript; it is not needed for JavaScript to access Java.
more...
LiveConnect 으로 해본 것은 모든 인터페이스를 스크립트로 구여하여 만든 소켓 사용 채팅이 있었다.
이 방법은 javascript의 많은 부분의 제약을 어느정도 효과적으로 활용 할 수 있는 방법이라 생각되어 진다.
# by | 2005/03/23 10:53 | 시간.. | 트랙백 | 덧글(0)





☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]