Results 1 to 6 of 6
  1. #1
    shwein is offline Member
    Join Date
    Sep 2008
    Posts
    38
    Rep Power
    0

    Default [SOLVED] calling javascript from applet method

    can i call javascript from within a applet method?
    example:
    <code>
    ...
    import netscape.javascript.*;
    ...
    public class Applet extends JApplet{

    public void Call_Js(){
    //here i would like to connect to a javascript function
    }

    public void init(){
    ...
    }
    }

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,902
    Rep Power
    25

    Default

    import netscape.javascript.*;
    Look where you found that import statement described. There will probably be sample code there. Have you tried google?

  3. #3
    shwein is offline Member
    Join Date
    Sep 2008
    Posts
    38
    Rep Power
    0

    Default

    im fully aware that you think i'm a very lazy person who will not even take the time to "google". Fact is that this "google'n" is driving me insane(!!), it comes up with tons of different approaches. For a noob like me its all very confusing... that's why i ask these questions. i thought; they can at least help me narrow it down.
    never the less, thx

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    im fully aware that you think i'm a very lazy person who will not even take the time to "google".
    Many of us will rush to this conclusion, but I've rarely seen it from Norm. In fact if you've taken the time to read his many replies here, you'll find them to be the least judgmental of anyone's. So in this case it's you who prejudged just a little bit.

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,902
    Rep Power
    25

    Default

    A search on this forum found a post that called a JS function.
    Did you look here?

    Where did you find the reference to "netscape.javascript"?

    Here's the doc I just got from a Google on the above:
    Package Index
    Last edited by Norm; 11-01-2008 at 05:21 PM.

  6. #6
    shwein is offline Member
    Join Date
    Sep 2008
    Posts
    38
    Rep Power
    0

    Default

    i must admit you're both right.
    in conclusion-->
    from now on I:
    *will only ask a well formulated questions.
    *will only ask those questions after a 'full cavity search' on online
    documentation.
    *will increment my knowledge on 'forum communication protocols'.

    :)

Similar Threads

  1. [SOLVED] calling javascript from applet
    By shwein in forum Java Applets
    Replies: 5
    Last Post: 11-01-2008, 12:45 AM
  2. Replies: 29
    Last Post: 09-25-2008, 08:55 PM
  3. Java applet and Javascript type problem
    By Interdit in forum Java Applets
    Replies: 0
    Last Post: 05-27-2008, 02:38 PM
  4. method calling?
    By frejon26 in forum New To Java
    Replies: 4
    Last Post: 01-25-2008, 04:38 AM
  5. Help with Calling a method
    By Albert in forum New To Java
    Replies: 3
    Last Post: 07-10-2007, 04:27 PM

Posting Permissions

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