To Call Functions Of Javascript From A Java Applet - Please help me.

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > Java, Java Servlets, Java Script, & JSP

To Call Functions Of Javascript From A Java Applet - Please help me.

reciter
Hi.There is a matter to know.

I studied how to call the public method of a JAVA applet from javascript on the other day.(Within javascript, this is possible, if it carries out like document.applets[0]. method ();.)
I want to have come to know then suddenly,it is contrary to this,
Is it possible to call functions of javascript from a JAVA applet?



Please tell me this. smile.gif

Reply

rovertos
Applets need to import netscape.javascript.* package to make calls to JavaScript.

The typical form for an Applet to JavaScript call is

JSObject win = JSObject.getWindow(this);
String[] args = {formTextField.getText()};
Object stringObject = win.call("setFormTextEntry", args);

Where setFormTextEntry is the name of a JavaScript method in the web page and args represents the parameter list for the setFormTextEntry function.

Reply

jordanliuhao
From my experience, java script can call applet and applet can call java script, but it is better don't mix these two technology in your web site.

In my previous project, call from applet to java script may cause ie in windows xp home version dead lock, although all the other version work fine, including windows 98, windows 2000, windows xp professional.

So I believe the support of java in microsoft is not critical. You can play it, but don't consider it in your job.

QUOTE(reciter @ Nov 4 2004, 08:04 AM)
Hi.There is a matter to know.

I studied how to call the public method of a JAVA applet from javascript on the other day.(Within javascript, this is possible, if it carries out like document.applets[0]. method ();.)
I want to have come to know then suddenly,it is contrary to this,
Is it possible to call functions of javascript from a JAVA applet?
Please tell me this. smile.gif
*

 

 

 


Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. firefox jsobject "close window" - 312.39 hr back. (1)
  2. document.applets firefox-3 - 592.63 hr back. (1)
Similar Topics

Keywords : call, functions, javascript, java, applet

  1. Telemarketing Block List - Canada
    DO NOT CALL List coming to Canada (1)
  2. Need Help With Javascript Drag And Drop Script
    Having trouble with javascript drag and drop script. (2)
    hi, i have been trying to create a drag and drop menu for my new website, so that the navigation
    menu can be moved around the site. This is the code i have: CODE <html> <head>
    <title>Test run - Right click menu</title> <script
    type="text/javascript"> function coordinates(event) { if
    (event.button==2)   { var x=event.x; var y=event.y; }
    document.getElementById("element").style.left=x;
    document.getElementById("element").style.top=y;
    document.getElementById("eleme....
  3. Validating Javascript
    at the w3c (2)
    I have added a javascript behaviour to a small sample script and need to know how to get the
    javascript approved at the W3C. Here are the test results:
    http://validator.w3.org/check?uri=http%3A%...lidator%2F1.591 The validator doesn't like the
    onblur and onfocus events added to the input fileds for the script. Any ideas?....
  4. Fun In Sun (java)
    (2)
    Recently one of my friends sent me a link from a Java forum. Link below.
    http://forums.sun.com/thread.jspa?trange=3...26&tstart=0 Very nice one. Had to laugh like anything
    reading the thread. Have fun. Spread the link.....
  5. Video Play Like Youtube
    php, javascript source code need like player youtube (3)
    i need help for source code php or javascript... i want display video with a player like in
    youtube... please for help?....
  6. Java Script To Hide The Url In Address Bar
    Does any one know about this ? (6)
    Hello friends , just now i came accross a particular type of script which is capable of masking the
    URL which is seen in the Address bar of the webpage , that is by implementing the particular Java
    Script when the user visits a page eg. www.mysite.com , then it is possible for the admin of
    www.mysite.com to mask this site and display some other website in the viewers address bar. I came
    to know that such a script can be written using Java Scripts , Can any one get me the Script ??....
  7. Which Is Good Java Or Dot Net
    which is good (3)
    Hi, I want to know which is going to be a success in future. I've asked this question to
    many but all are giving my vague answers. I'm asking this question because i'm going to join
    a company where i can choose either dot net or java. Which one should i choose. Wax....
  8. Seeking Help With Javascript
    Need help with drag and drop type script (1)
    What i want to make is a script that has a table, which is a menu for my site, and when you click
    the top of the table you can drag it to another place in the page. This is the code: Test
    run - Right click menu - ©Jack McCrea 2008 <script type="text/javascript"> function
    coordinates(event) { if (event.button==2) { var x=event.x; var y=event.y;
    document.getElementById("element").style.left=x; document.getElementById("element").style.top=y;
    document.getElementById("element").style.visibility="visible"; var oldx=x; var oldy=y; } }
    <script type="....
  9. Browser Compatibility Problem With Firefox - Javascript + Css
    Having trouble making a script work right - any suggestions? (3)
    Hi, Im working on a website, and im trying to make a right-click menu, which opens on right click,
    wherever the cursor is, and closes on mouse out. I wrote the code below, and when i ran it in IE it
    ran fine, just how i wanted it to work. However in firefox, the menu just opened in the top left. im
    presuming this is because it doesnt like my style changing in the javascript. Any ideas, and
    suggestions? If i cant make this work, i will just make it so it works slightly differently when
    viewev in firefox so that it can just open in one place. All ideas appreciated. ....
  10. My Call Of Duty Clan (ps3)
    (0)
    Hi guys i finally made my own COD4 clan but it doesn't have a forums yet and it only for level
    35+(sorry) i made this because i and 14 other friend of mine play COD4 on the PS3 except 1 and its
    called Fast as we move fast, think fast, and act fast. i want all PS3 COD4 players lvl 35+ to join
    because if you didn't hear there is going to be a clan wars and the best wins(they win the best
    players of COD4) and im lvl 55 and last prestige the other people are lvl 40+ change their sigh
    onces i want you to join and help out please pm me if u want to join i will have to....
  11. Creating A Floating Javascript Docking Menu
    (1)
    I have found two scripts. I found one(shown bellow) here that creates a floating box that will
    follow you down the page when you scroll. I found another one here that creates a docking menu
    like that of OSX. Now I want to combine these effects to create a docking menu that floats and
    follows you everywhere you scroll to on the page. In the above code I change the div class from
    floatdiv so that it could use the style in the style.css that came with the docking menu. I then got
    stuck trying to make both JavaScript scripts work on the same div. I'm appealing ....
  12. Java De/compiler
    (5)
    Hey I'm currently using Netbeans as my Compiler and jd-gui as my decompiler I want to know if
    there is anything more effective when i use jd-gui is messes up the source code and deletes the
    @overrides and comment outs....
  13. Learn Java Programming Language Online Step By Step
    (1)
    I had found this site >> http://learnjava.awardspace.com This website is for people who want
    to learn Java Programming Language step by step. This website also includes JAVA lessons from the
    beginning to advanced level. So this site appropriates for the beginner of Java programmer language
    or non-basic Java Programming Language. The lessons are easy to follow and understand starting
    from how to get your PC JAVA ready, the fundamental programming concept and creating the real
    application. Moreover, the working examples are also included. Please enjoy the les....
  14. Functions
    ??? (9)
    I created this topic mainly because I wanna get a clear interpretation about those listed PHP
    functions. The first function is while($row=mysql_fetch_array($query)) { ....
  15. Java Or C++
    (10)
    Many having tell me to make my MMORPG in java leads me to agree, But I'm not sure truly is it
    not yet easier, but yet the outcome of programming an MMORPG in java will make it fail or succeed
    more then one in C+= I've learned a lot of variables in javascript, and I don't think that
    java would be too bad either. My true question is, is those who use these languages, which seems
    to give better outcome, and which seems to be more in ease. Regards -PCessna....
  16. Budding Java Game Developers?
    Ever wanted to make your own java web-based game, but not had the time (10)
    Right, this is the first post of hopefully many in this thread. Basically the idea is to get many
    developers together to share ideas and knowledge to create our very own game. First we'll be
    asking for is any ideas of what kind of game everybody would like to make, and then we'll set
    about assigning tasks depending on everybodies skills. We will need programmers, artists,
    web-designers, even admin and marketing. This will be freeware, but the experience will be great.
    So, ideas anyone?....
  17. Call Of Duty 4 Clan(ps3)
    (11)
    Hi guys i finally made my own COD4 clan but it doesn't have a forums yet and it only for level
    35+(sorry) i made this because i and 14 other friend of mine play COD4 on the PS3 except 1 and its
    called Fast as we move fast, think fast, and act fast. i want all PS3 COD4 players lvl 35+ to join
    because if you didn't hear there is going to be a clan wars and the best wins(they win the best
    players of COD4) and im lvl 55 and i change my sigh 2 times the other people are lvl 40+ change
    their sigh onces i want you to join and help out please pm me if u want to join i ....
  18. Simple Javascript And Password System
    How to protect your pages with password (9)
    The quickest way to get a password protection system up and running is to use a Prompt box in
    JavaScript that has a title like "Enter your Email Address". Only you and the relevant users know
    what the password should be, could even be one each, that can be sorted out at the next page then
    pass the "input" directly through the url by changing the .href, like
    http://www.iSource.net.nz/users/?leTmeIn= The page that then processes this should also check for
    the referring page, and three fails from an IP if you like the php (the next page): CODE
    <?php // processdo....
  19. Helpful Registry Edit For Java Programmers
    Command Prompt on right click menu (3)
    With this registry edit you can easily open the current folder in prompt without going through any
    Change Directory commands (cd). This is useful for people like me who are programming in JAVA, and
    every time to create class files and test them I have a diificult time just entering the commands in
    Prompt. But if you don't want to use this registry edit you can create the directory in
    C:\ drive like C:\files so you have to navigate very little in prompt. If you are
    experienced in regedit you can do it yourself shown below OR download the attachment and app....
  20. Php Functions To Send Mail
    (9)
    Which other methods to send mail from a form? I just know mail function, like: mail(string to,
    string subject, string message) Has anyother?....
  21. Will I Run Cod4?
    Will my computer be able to run call of duty 4? (11)
    Hi everyone! Should I buy COD4? My specs are: 1GB Ram 1.86GHZ Dual Core AMD Turion 64 X2
    Nvidia Go 6100 Windows XP/Windows Vista (Dual Boot) I can currently get a constant 75FPS on COD2, I
    have adjusted my Graphics card for performance. Will I be able to run it, even on lowest settings.
    I want to get it, to play with my friends! Thanks for your help. Cheers!....
  22. Jsp Or Java Chat Script Like Mig33
    (5)
    so most of you guys know mig33. its a wap application,probaly java.most kindly to be java. does
    anyone have java knowlege or knows where i can get a chat script like mig33? i also know this server
    supports jsp so im planing to use it for my application. i was hosted here last year but moved
    because i found a better host. now im back just to use the jsp on this server. Im planing to run
    chat applictions so if any one wants to help me in my project let me know.....
  23. Best Java Framework For J2ee?
    Your Opinion About The Best Java Framework (6)
    What is the best framework to make enterprise application using Java (J2EE)? Currently I am
    learning Spring and it is quite good eventhough it is very complicated in my opinion. Maybe someone
    can share which framework that you use What are its advantages and disadvantages? I seek a J2EE
    framework that supports JMS and offer quick development process.....
  24. Playing Flash Movies Without The One-click Activation: Simple Insertion Of Javascript
    (4)
    In the past year or two iternet explorer and other browsers have updated their coding platforms.
    The bad thing is that if you have any flash objects at all within your web page you have to hit the
    space bar or click on the flash object to activate it. Once you activate it, you then can interact
    with the object or the object will then play on the website. I dont like how you have to activate
    the flash player first to interact with it. here is the code to prevent that. Believe me people
    notice how much better the site is after you do this. put <script type="text/java....
  25. Call Of Duty Tips And Tricks
    For both origional and sequal (5)
    Hello all you CoD fans, newbs, and players. My name is Mitch, but you will most likely see me as
    (_8(|) when I play Call of Duty online. For those who can't see/read ASCII Art, my monogram is
    Homer Simpson in ASCII. Anyways, I plan to give you guys this little tutorial/booklet that will
    allow you to play at your absolute best! Guaranteed. You will up your KD ratio by at least 3
    times. But first a little history about myself. I origionally bought CoD1 (yes the origional) in
    late 2004 from a pool fund for a LAN party. None of my friends had CoD but we wanted....
  26. How To Create Java Button Or Frame
    to be customized (14)
    hi to all!!!! just like to ask if it would be possible if i could make a custom
    button or frame in java. i got tired of using the build infeatures in java. i would like to create
    my own dessign of button or frame.. can it be possible!!! /biggrin.gif' border='0'
    style='vertical-align:middle' alt='biggrin.gif' /> thank!!!! /laugh.gif'
    border='0' style='vertical-align:middle' alt='laugh.gif' /> New Help In! is NOT a descriptive
    topic title. Next time you decide not to follow the posting rules, you will be issued a w....
  27. Java Mobile Applications
    What you wanna have on your phone ? (7)
    I'm trying to do a Java mobile J2me application... But I don't know what to do... Any
    suggestions....? Maybe you guys can say what you would like to have on your mobile phone... ....
  28. [help] Java Script: Window.open
    Works with Firefox, not IE (10)
    CODE <HEAD> var popUpWin=0; function popUpWindow(URLStr) {
     if(popUpWin)  {    if(!popUpWin.closed) popUpWin.close();  }
     popUpWin = open(URLStr, 'GunBound Tactics: Screenshots',
    'width=820,height=550,menubar=no,resizable=yes,scrollbars=yes,toolbar=no,top=90,left=90')
    ;; } </HEAD> <BODY> <a
    href="javascript:popUpWindow('/f11/clipped.php');"><b>Clips&
    #60;/b></a> This is a script for opening a new window. It works ....
  29. Image Preloader With Progress Bar Status
    Pure Client-Side JavaScript tested in 4 Browsers! (23)
    Tutorial: Image Preloader with Progress Bar, by Rob J. Secord, B.Sc. (SystemWisdom)
    Description : A Tutorial for a Client-Side Image Preloader with Dynamic Real-Time Progress Bar
    Indicator written in JavaScript! Tested to work with 4 Major Internet Browsers: Firefox, MSIE,
    Netscape, Opera (Complete sample solution provided at end of tutorial, just put it on your
    web-server, add your images and go!) Intended Audience : Beginner to Intermediate Web
    Developers. Although this tutorial will cover some advanced aspects of JavaScript, I will try to
    explain....
  30. Javascript Slideshow Tutorial
    How to make a slideshow in JavaScript (4)
    JavaScript Slideshow Tutorial I'm going to show you how to make a impressive JavaScript
    slideshow. First, you're probably asking: why would I want to make a slideshow in JavaScript?
    There are a number of reasons. First, you don't have to build a new HTML page for each picture.
    Secondly, the page will load much faster because the of the compactness of the page. Ok let's
    get started with this example. First we'll add a <script> tag in the of our HTML
    document. In that script tag we will build the following: CODE      first = 1;      la....

    1. Looking for call, functions, javascript, java, applet

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for call, functions, javascript, java, applet

*MORE FROM TRAP17.COM*
Similar
Telemarketing Block List - Canada - DO NOT CALL List coming to Canada
Need Help With Javascript Drag And Drop Script - Having trouble with javascript drag and drop script.
Validating Javascript - at the w3c
Fun In Sun (java)
Video Play Like Youtube - php, javascript source code need like player youtube
Java Script To Hide The Url In Address Bar - Does any one know about this ?
Which Is Good Java Or Dot Net - which is good
Seeking Help With Javascript - Need help with drag and drop type script
Browser Compatibility Problem With Firefox - Javascript + Css - Having trouble making a script work right - any suggestions?
My Call Of Duty Clan (ps3)
Creating A Floating Javascript Docking Menu
Java De/compiler
Learn Java Programming Language Online Step By Step
Functions - ???
Java Or C++
Budding Java Game Developers? - Ever wanted to make your own java web-based game, but not had the time
Call Of Duty 4 Clan(ps3)
Simple Javascript And Password System - How to protect your pages with password
Helpful Registry Edit For Java Programmers - Command Prompt on right click menu
Php Functions To Send Mail
Will I Run Cod4? - Will my computer be able to run call of duty 4?
Jsp Or Java Chat Script Like Mig33
Best Java Framework For J2ee? - Your Opinion About The Best Java Framework
Playing Flash Movies Without The One-click Activation: Simple Insertion Of Javascript
Call Of Duty Tips And Tricks - For both origional and sequal
How To Create Java Button Or Frame - to be customized
Java Mobile Applications - What you wanna have on your phone ?
[help] Java Script: Window.open - Works with Firefox, not IE
Image Preloader With Progress Bar Status - Pure Client-Side JavaScript tested in 4 Browsers!
Javascript Slideshow Tutorial - How to make a slideshow in JavaScript
advertisement



To Call Functions Of Javascript From A Java Applet - Please help me.



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE