-
Loading Web Page from Applet
Hello,
I have a web page with two Frames. The left frame is a Java Applet Treeview,
and the rigth frame is where I need to load a web page, depending on where
the user clicks in the Treeview Applet.
How can I accomplish this, using Java and ASP? Also, would using Servlets/JSP
help me solve this problem? The problem is not simply one of loading a web
page upon a click event, but loading it in the Frame on the right hand side
of the page. In HTML, I would simply provide the "Target=<Frame Name>" Argument
in the HREF, but I can't seem to find a way to do this in Java.
Thanks very much,
Reuben Cleetus.
-
Re: Loading Web Page from Applet
This is from a previous post:
>>Yry this in your event code:
>>getAppletContext().showDocument(URL, _blank);
>>In fact you can open up a URL in any valid frame using this:
>>getAppletContext().showDocument(URL url, String target);
>>HTH,
>>Tom Duffy
>>Assistant Professor, CIS
>>Norwalk Community College
>>http://www.bright-moments.com/javasite
Reuben wrote:
> Hello,
>
> I have a web page with two Frames. The left frame is a Java Applet Treeview,
> and the rigth frame is where I need to load a web page, depending on where
> the user clicks in the Treeview Applet.
>
> How can I accomplish this, using Java and ASP? Also, would using Servlets/JSP
> help me solve this problem? The problem is not simply one of loading a web
> page upon a click event, but loading it in the Frame on the right hand side
> of the page. In HTML, I would simply provide the "Target=<Frame Name>" Argument
> in the HREF, but I can't seem to find a way to do this in Java.
>
> Thanks very much,
> Reuben Cleetus.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|