• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Marc Pr�pper
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
 
Jasmine kaur
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic