CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 1999
    Location
    India.
    Posts
    81

    Calling an HTML page from an Applet

    How to call an HTML page from an applet?


  2. #2
    Join Date
    Apr 2000
    Location
    Hyderabad, India
    Posts
    23

    Re: Calling an HTML page from an Applet

    hai,
    U can go for java liveconnect.
    Ie. invoking the JSObject from the applet for the html page function.

    Hope u got wat u needed.
    If u want furthe details
    mail me.

    bye
    bharath
    Email Id: [email protected]








    S.V Bharath Reddy
    Software Engineer,
    Hyderabad.

  3. #3
    Join Date
    Dec 1999
    Location
    Chonghe, Taipei County, Taiwan, R.O.C.
    Posts
    231

    Re: Calling an HTML page from an Applet

    In the java.applet.AppletContext interface, there is the method showDocument() which can
    be used to show the html page. You may look it like this

    AppletContext ac = getAppletContext();
    URL html_url = new URL("http://www.xxxx.com/hello.html");
    ac.showDocument(html_url);



    In order to simplify the code for clearness, I ignore the exception. When you code your code, you may
    try the code and catch the exception. You may also reference the JDK document. In my home page,
    I also have the article which just take advantage this techinque to link to the other web page.
    http://www.geocities.com/kib63613/
    in the material area, you may find the relative sample in the article, awt-button application-building button,
    part two.
    good luck,
    Alfred Wu


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured