File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes documentbase Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "documentbase" Watch "documentbase" New topic


arun iyer

Joined: Nov 29, 2000
Posts: 28
how to get the documentbase of a file when the applet is in one frame and the required html file is in the other frame int he same window?
arun iyer
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
An applet is called from an HTML file and the applets HTML can be identified within the applet by using getDocumentBase().
When you say that the required HTML is in another Frame in the same window, is the other frame a different applet? Another frame in the same applet? What "window" are you referencing?

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: documentbase
It's not a secret anymore!