Results 1 to 2 of 2
  1. #1
    fred is offline Member
    Join Date
    Jul 2007
    Posts
    41
    Rep Power
    0

    Default How to pass an html variable as an applet value

    I have problems when I want to pass a variable defined in an HTML page as an APPLET value.

    This is my code
    Java Code:
    var username
    var password
    <APPLET
    <param name="username" value=username-variable
    <param name="password" value=username-variable
    </APPLET>
    Any ideas?

  2. #2
    Peter is offline Senior Member
    Join Date
    Jun 2007
    Posts
    119
    Rep Power
    0

    Default

    hmmm
    JavaScript part needs <script> tag even though they can't be used from Applet elements.
    read the documentation
    ;)

Similar Threads

  1. Chat Applet in HTML
    By Flynazn in forum Java Applets
    Replies: 3
    Last Post: 05-27-2008, 09:26 AM
  2. Replies: 0
    Last Post: 03-10-2008, 02:36 PM
  3. How to view applet from html page.
    By jwzumwalt in forum Java Applets
    Replies: 2
    Last Post: 11-24-2007, 04:21 AM
  4. Replies: 1
    Last Post: 08-03-2007, 10:52 AM
  5. Create a Applet in the page HTML
    By Daniel in forum Java Applets
    Replies: 2
    Last Post: 07-04-2007, 07:52 AM

Posting Permissions

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