• 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

Applet

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to call an applet methods from an HTML page.Basically i have an html page which contains two frames(Upper frame and lower frame).In the lower frame an applet is located i want to refer the applet from the first name how can i do that.How do i call the methods of an applet.Please let me know on this.Thanks in advance.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hai,
please kindly discuss in datail about applets in java.
--preet
------------------
<i>preet</i>
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your bottom Frame must have a name. Let's say it's "BFRAME". Your Applet must have also been given a name. Let's say it's "BApplet". You can refer to your applet from an HTML script event using the name of the Applet and the proper document referencing such as:
<FORM NAME=form1>
<INPUT TYPE=Text NAME=field1 LENGTH=50 onChange="top.BFRAME.document.BApplet.mymethod(param1,param2,...)">
</INPUT>
</FORM>
You must reference the parent window "top" first, then the frame name "BFRAME", then "document", then your Applet name (from NAME= in <APPLET> tage), and then the methods. Put literals in single quotes.
 
reply
    Bookmark Topic Watch Topic
  • New Topic