• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

make applet as a link to show on the html page

 
Jerome Tang
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all:
Is there anyone know how to make applet as a link so I can insert
as a link on my html page.So when I click on the link it will execute the applet, the link will also change the color.
I know how to by click it through a image but I has no idea make it as link. or if it is impossible, please tell me also.
Is the link only for html page not poosible for applet?

Thank a million
Sincerely Yours
 
ruilin yang
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A very simple solution is to use another simple html file to call the Applet. Then your main html will have a link (archor)to the simple html file (or call it applet wrapper).
When you click on the link (archor) you will call the html containing the Applet. The Applet will disply.
hope it helps
ruilin
 
Jerome Tang
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yang:
Thanks a lot for your reply.
My problem is that when I click the link I need the applet show up and the
html page can't be show up...
is it possible?
Thanks a lot
 
ruilin yang
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, your applet will only show up since your wrapper html has nothing to display except an Applet.
you will be ok.
regards,
ruilin
<HTML>
<HEAD>
</HEAD>
<BODY>
<FORM NAME="wrapper">
</form>
<APPLET CODE="yourApplet.class" WIDTH=400 HEIGHT=300>
<PARAM NAME="title" VALUE="sss">
</APPLET>
</BODY>
</HTML>
 
Jerome Tang
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can take a look the code below...
because after I follow your suggestion, it will show white blank image on the top left corner. I will need to click the top left
corner to exec the applet..
Thanks a lot

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Mozilla/4.61 [en] (WinNT; U) [Netscape]">
<title>Document Manager</title>
<!--
* bcwti
*
* Copyright (c) 1997, 1998 Windchill Technology Inc.
* All Rights Reserved.
*
* This software is the confidential and proprietary information of
* Windchill Technology. You shall not disclose such confidential
* information and shall use it only in accordance with the terms
* of the license agreement you entered into with Windchill.
*
* ecwti
-->
</head>
<body >
<FORM NAME="wrapper">
</form>

<applet code="wt/boot/BootstrapApplet.class"
CODEBASE="../../.."
ARCHIVE="wt/security/security.jar"WIDTH=400 HEIGHT=300
><param name="boot_jar" value="wt.jar"><param name="boot_class" value="wt.clients.folderexplorer.DRSWindchillExplorerApplet"><param name="wt.context.locale" value="en_US"><param name="cabinets" value="wt/security/security.cab"></applet>
</BODY>
</HTML>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic