Forums Register Login

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

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
Let's go to the waterfront with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1203 times.
Similar Threads
Display String in new window
Closing applets
Doubt in SimpleTag and ClassicTag Nesting
Does SimpleTag Nesting allowed( yes. resolved)
How to specify locations for GUI controls?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 06:57:24.