How will you call an Applet using a java script function?
111744
You can also reference this applet through the applets array. For example, if it is the first applet in the document: \n\ndocument.applets[0] \n\nThe applets array has a length property, document.applets.length, that indicates the number of applets in the document. \n\nAccessing applets\nAll public variables declared in an applet, its ancestor classes, and packages are available in JavaScript. Static methods and properties declared in an applet are available to JavaScript as methods and properties of the applet object. You can get and set property values, and you can call methods that return string, numeric, and boolean values. \n\nto call method start in the first applet can be called like this\n\ndocument.applets[0] .start()\n\nCheck this for more examples\nhttp://www.codeproject.com/jscript/javatojs.asp
366162
can use this \n\n<script type="text/javascript">\n<!--\n// original content taken from Nic's JavaScript Page with permission\n// lack of these three lines will result in copyright infringment\n// made by: Nic's JavaScript Page - http://www.javascript-page.com\n\nvar currentdate = 0;\nvar core = 0;\n\nfunction initArray() {\n\nthis.length = initArray.arguments.length;\n  for (var i = 0; i < this.length; i++) {\n  this[i] = initArray.arguments[i];\n  }\n}\n\nlink = new initArray(\n"http://WEBSITES_URL_HERE/",\n"http://#/",\n"http://#/",\n"http://#/",\n"http://#/"\n);\n\nimage = new initArray(\n"http://URL_TO_BANNERS",\n"http://",\n"http://",\n"http://",\n"http://"\n\n\n);\n\ntext = new initArray(\n"3B Graphics",\n"Learn HTML in 7 Easy Steps",\n"Nic's JavaScript Page"\n);\n\nvar currentdate = new Date();\nvar core = currentdate.getSeconds() % image.length;\nvar ranlink  = link[core];\nvar ranimage = image[core];\nvar rantext  = text[core];\n\ndocument.write('<a href=&#92;"' +ranlink+ '&#92;" target=&#92;"_blank&#92;"><img src=&#92;"'+ranimage+'&#92;" border="0" alt=&#92;"'+rantext+'&#92;"></a>');\n\n//-->\n</SCRIPT>
340323
try http://www.hotscripts.com/JavaScript/ ...
169925
this is either a security setting or you dont have java installe (assuming the applet is java)
846773
Use a div.\n\n<div id="jsalert" style="display: none;"></div>\n\n<script type="text/javascript">\nfunction jsalert(message)\n{\ndocument.getElementById("jsalert").innerHTML = message;\ndocument.getElementById("jsalert").style.display = '';\nsetTimeout(function() { document.getElementById("jsalert").style.display = "none"; }, 5000); // 5 second delay\n}\n</script>\n\nand to use anywhere in your javascript:\njsalert("the message"); just as if you were to use alert();\n\n\nSome of the code was made into ... by yahoo, mouseover for the full code.
88383
You can't directly call into a Javascript function, but you may:\n1) create a client side script from the server side (a page that outputs <script>alert('some message')</script> for instance)\n2) there's some new support in Asp.NET 2.0 for client to server interaction (AJAX)\n3) you may look for ATLAS which is a foundation just for that kind of things (Web 2.0 in general)
262433
i would surgest a use of a small java script img at the begining of the script\n\nsome thing like\n<a href="noname.html" onClick="liens=new createArray('noname.html','noname.html'); location=liens[pub]; return false"><img name="pubImg" src="ATT58239.jpg" width="550" height="379" border="0">
760469
The most likely problem is that the applet was written using an API with methods that don't exist in the JVM class API being used by IE.  Update your browser Java Plugin to the latest and then try.
1083828
Here is an example of how to do it:\n\n\n<html>\n<script>\nfunction loadPlayer() {\nPlayer.URL = "myMP3.mp3"\nPlayer.controls.play()\n}\n</script>\n\n<body onload="loadPlayer();">\n\n<object id="Player" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"\n    width="0" height="0">\n</object>\n\n\n</body>\n</html>
1163478
For a simple answer it will be the following:\n<APPLET CODE=AppletSubclass.class WIDTH=anInt HEIGHT=anInt>\n</APPLET>\n\nwhere your code is the class of that applet. Take a look at the website below for full description of how to use make applets.\n\nFor your information the tags are standard for any scripting language, it will just be interpretted as html.
430486
You can try emulating a keypress event. \nThe way to do that will depend on which browser(s) you want to support.\n\nThe DOM/Mozilla way: http://developer.mozilla.org/en/docs/DOM:document.createEvent\n\nNote that this part of the DOM interfaces are not very well documented. You'll want to create an event of type "KeyEvents" (I guess) and then populate its properties to match a Ctrl-Z keypress.\nThis discussion might be of some help: http://tinyurl.com/lbfvk\n\nGood luck!
804571
You need to learn Socket and/or RMI to write a Java Application, not applet.\nYou need a dedicated server to run the server application.\nBecause of some security restriction for Java applets they can only create connections to the host where they came from. Therefore you should host the application and the applet on the same host. Another option is to create a client application instead of an applet (that's the model for most mmorpg games)
998713
Hi, he is using javascript but in a wrongly matter...\n\nI recently answered a post concerning this: I have posted it in my blog. You can take a look on how I did it here:\n\nhttp://www.m0interactive.com/archives/2006/06/13/how_to_creat/\n\n\nI created a javascript function that does that.  take a look below:\n<html>\n<head>\n<!-- \nHere we will place the Javscript page to jump to...\n-->\n<script type="text/javascript">\n/*\n* On click, it redirects to the page\n*\n* @author Mohamed Mansour <www.m0interactive.com>\n*\n*/\nfunction jumpToPage( redirect , selectedField , restore ){ \n\neval(redirect+".location='"+selectedField.options[selectedField.selectedIndex].value+"'");\n\nif (restore) \nselObj.selectedIndex=0;\n}\n</script>\n</head>\n<body>\n<!-- \nHere we will place the HTML code\n-->\n<form method="get" action="">\n<select name="Id" id="Id" onchange="jumpToPage('parent',this,0)">\n<option value ="">SELECT A DESTINATION</option>\n<option value ="http://www.yahoo.com">Yahoo</option>\n<option value ="http://www.google.com">Google</option>\n</select>\n</form>\n</body>\n</html>
61409
You can't. You'll need to add, at the minimum, some Javascript.
609282
delete the bakgammon applet from c:/windows/downloaded program  files/\n\nreinstall java again from http://java.sun.com\ntry to go to bg again so yahoo will upload applet again\n\nalso as other user said make sure ure browsers java settings are enabled\n\nlet us know how it gone
515253
Hi in your JSP pages, you would add the javascript file you wish to invoke within the client side to your header file.\n. \n.\n.\n<script type="text/javascript" src="file.js"></script>\n</header>\n\nRemember you treat your jsp page as if it was html and if you want to access a funciton within the javascript.. For instance say I have a function that makes a popup window.. \n\nI just do this within the jsp\n<a href="#" onclick="popup('http://www.yahoo.com');" > POPUP YAHOOO </a>\n\nNow, as you know JAVASCRIPT ISN'T a server side program, it is not a programming language it is a scripting language which is client side. JSP has NOTHING to do with Javascript.  JSP is Java Server Pages which is a programming language and server side since it needs to compile unlike scripting languages...\n\nConclusion:\nYou just treat your javascript as your dealing with your normal HTML. Don't think JSP when dealing Javascript :D\n\nGood luck and wish you the best
387071
I don't know that it's possible. I found this.  Hope it helps...\n\nQ4012 Can my JavaScript and my Java Applet on the same page talk to each other?\n\nJavaScript code running on Netscape can reference the java AWT, Toolkit and most of the other Java objects and methods. It can also access public objects created in Java applets on a document. This does not seem to work always with Explorer. The general format of the code is something like this for JavaScript referencing Java objects or methods.\n\ndocument.className.method();\n\nThere is an additional object model called JSObject that can be used from within a Java applet to access JavaScript objects in a document, but unfortunately the JSObject model is implemented differently in Netscape and Explorer, making it impossible to guarantee cross platform compatibility of Java Applets which reference JSObject! The general format for code is:\n\nJSObject.objectname.method(); // OR\nJSObject.objectname.property();