DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Reuben Guest

    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.

  2. #2
    Rocco Balsamo Guest

    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.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links