• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Scripting applets.

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having much problems trying to script a simple applet. I have read books, websites et al and they all say that the following shoudl work. Only it does not. What am I doing wrong?
Here is the HTML
-----------------------
<pre>
<script>
function lookupURL(){
myApplet=document.applets["fetchURL"];
myApplet.start(); // It fails here ( no such method)
s = myApplet.getCGIResult(); // If I comment out the //above it fails here
alert (s);
} // lookupURL
</script>

<center>The applet is below</center>


<APPLET name="fetchURL" "CODE="testcgiapplet.class" CODEBASE="Java" WIDTH=300 HEIGHT=100 MAYSCRIPT></APPLET>
</pre>
----------------------
I declared the function like this
public String getCGIResult()
I could post the whole applet too if anybody want it.

------------------
"There are some who call me TIM?"
 
It will give me the powers of the gods. Not bad for a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic