Java applets in 3.1.0 branch
Koos Vriezen
koos.vriezen at xs4all.nl
Sun Jan 12 20:59:00 GMT 2003
On Sun, 12 Jan 2003, George Staikos wrote:
> On Sunday 12 January 2003 15:18, Koos Vriezen wrote:
> >
> > There is no way to test these yahoo games without signing in, no?
>
> No.
Too bad ;)
> KJAS: createApplet, context = 0, applet = 1
> KJAS: name = y.vmd.0, classname = y.vmd.0
> KJAS: baseURL = http://games.yahoo.com/games/login2?page=bj,
> codeBase = http://download.yahoo.com/games/clients/
> KJAS: archives = null, width = 5, height = 5
Ok an applet gets loaded
> KJAS: sendAppletStateNotification, contextID = 0, appletID = 1, state=1
Applet loaded
> KJAS: sendAppletStateNotification, contextID = 0, appletID = 1, state=2
Applet instanciated
> KJAS: CL-1(http://download.yahoo.com/games/clients/): loadClass, class name =
> netscape.javascript.JSObject
> KJAS: CL-1(http://download.yahoo.com/games/clients/): returns class
> netscape.javascript.JSObject
Applet wants to evaluate Javascript
> Classloader=sun.misc.Launcher$AppClassLoader at 35c445b5
> KJAS: JSObject.getWindow
> KJAS: JSObject.ctor: [WINDOW]
> KJAS: sendJavaScriptEventCmd, contextID = 0 event = eval
> KJAS: sendJavaScriptEventCmd, length = 389
> KJAS: sendJavaScriptEventCmd, index = 396
org.kde.javascript.JSObject send a JS script which creates a __lc array.
Do you see any kjs error on the commandline where konqueror started? If
so, make sure you 'cvs up' yesterdays commit. Otherwise, what do you see
on the commandline?
> KJAS: evaluate ("java_vendor = "Blackdown Java-Linux Team"")
> KJAS: sendJavaScriptEventCmd, contextID = 0 event = eval
> KJAS: sendJavaScriptEventCmd, length = 95
> KJAS: sendJavaScriptEventCmd, index = 102
Same here, you should see a return from JS. Something like
KJAS: PH: cmd_length = 44
KJAS: PH: read in 44 bytes for command
KJAS: putValue: applet __lc_ret=S Blackdown Java-Linux Team
KJAS: PutMember __lc_ret=S Blackdown Java-Linux Team
Koos
More information about the kfm-devel
mailing list