SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Dec 2000
    0 Post(s)
    0 Thread(s)
    Hi folks.

    Before I go into my main question, I should ask if Java can set a javascript variable. If not there is no point describing it. I don't know anything about Java, and have only just been learning some javascript.

    If so would it be something like...

    <script language="javascript">

    var myVar = "<applet..."


  2. #2
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Melbourne, Australia
    2 Post(s)
    0 Thread(s)
    Netscape 3.x and 4.x and MSIE 4 or later allow an Applet to access JavaScript objects/variables and JavaScript to envoke Java methods by importing and then using the netscape.javascript.JSObject class that is built into the Java runtime of those browsers. This support is enabled by adding the MAYSCRIPT attribute to the APPLET tag.

    This support is not available in Netscape 6.0, which uses the Sun Java runtime (or Opera 5.0, for the same reason). Whether or not NS6 supports JavaScript-Java communication by some other means is something I'd have to research. Does anyone else know offhand?
    Kevin Yank
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts