From: Andre P. <dro...@ya...> - 2001-08-06 05:40:51
|
Hi, Couldn't find much about LiveConnect on DynAPI's mailing list arquchives, so I come to you, hoping for some light... :) Here's my problem: The following LiveConnect function used to work for me with the old DynAPI, but now after converting my new HTML file to DynAPI2, I can't get my function to work anymore... Do I need to do anything special to initialize LiveConnect functions on DynAPI2 ? I'm attaching the old, working HTML file with DynAPI+LiveConnect (liveConnect.old.html), and the new, broken HTML with DynAPI2+LiveConnect (armControl.html). Thank you in advance for any help. function servoConnect(host,port) { if (connected) { alert('Already connected.'); } else { netscape.security.PrivilegeManager.enablePrivilege("UniversalConnect"); servo = new java.net.Socket(host,port); servoIn = new java.io.DataInputStream(servo.getInputStream()); servoOut = new java.io.PrintStream(servo.getOutputStream()); servoIn.readLine(); connected = true; } } For a live demo goto: http://www.racingthoughts.org/projects/racingThoughts/clients/armControl.html __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ |