Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

To what applet context info does the getParent() method give access?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Applet class inherits the public getParent() method from the Container class. It seems that this would give me a pointer to the window that calls the Applet. Does that give me real control over this window and its other child objects, like form controls and menubar? Can I give a call to the document and form controls? I suppose not, because Applets are meant to be safe, so what point am I missing here?
Marc
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello ,
applet inherits from panel class so when you will call this method getParent() it will return the container class object .What changes u wnat to make excatly ?
If you have any doubt please do ask.
Thanks
Jasbir
 
Marc Pr�pper
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I created a webpage with a few controls (text boxes, button, radio) using Javascript.
Now I want to do the following:
1. upon pressing the button I want to transfer the text box info to an applet
2. read the parameters in the applet using getParameter()
3. process the data
3. return processed data as output to the form controls in the window again.
The question is if I can lay contact with the form controls through the returned window pointer from the getParent() method?
Marc
 
Marc Pr�pper
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Although I am still interested in the getParent() question I found a workable solution on :
http://developer.netscape.com/docs/manuals/index.html?content=javascript.html
The developers at Netscape have written a package netscape.javascript that contains the the LiveConnect classes (among which JSObject) that allow for creating an applet and communicating to it from Javascript and calling Javascript from within the applet. That'll do!
Marc
 
It's never done THAT before. Explain it to me tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic