Closed Bug 54765 Opened 26 years ago Closed 26 years ago

Simple Java to JavaScript access does not popup an alert box.

Categories

(Core Graveyard :: Java: OJI, defect, P3)

x86
Windows NT
defect

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 14666

People

(Reporter: rpallath, Assigned: edburns)

Details

The page loads an applet which in it's init method invokes a javascript method which simple puts out an alert box. It does not display the alert box. No exceptions are thrown Same behaviour on WinNT and win98 using JRE bits from 09/22/2000 on mozilla build 09/28/2000. Works on Netscape 4.7x and IE5 Internal SUN site URL http://lonely.eng/Blackwood/src/OJI/PluginTest/sunw/LiveConnect/html/sjavatoscript.html HTML file ---------- <html <body> <P></FORM><APPLET codebase="../classes/" code="javatoscript.class" MAYSCRIPT wid th=100 height=100></APPLET> </BODY> </HTML> Java Source file ----------------- The javatoscript.java file is listed below. import java.awt.*; import java.applet.*; import netscape.javascript.JSObject; public class javatoscript extends Applet { public void init() { try { JSObject win = JSObject.getWindow(this); //JSObject doc = (JSObject) win.getMember("document"); String args[] = {""}; win.call("popHello", args); } catch (Exception e) { System.out.println("*** CaughtException **** \n"); } } }
Tried with WINNT4.0 SP3 Mozilla from 10/11/00, JPI from 10/13/00, still no pop- up. Re-assigning to Jeff.
Status: NEW → ASSIGNED
Duplicate of 14666 *** This bug has been marked as a duplicate of 14666 ***
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → DUPLICATE
Verified dupe.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.