This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Applets and the fly likes make applet as a link to show on the html page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Applets
Reply Bookmark "make applet as a link to show on the html page" Watch "make applet as a link to show on the html page" New topic
Author

make applet as a link to show on the html page

Jerome Tang
Greenhorn

Joined: May 06, 2001
Posts: 8
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

Joined: Feb 25, 2001
Posts: 334
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

Joined: May 06, 2001
Posts: 8
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

Joined: Feb 25, 2001
Posts: 334
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

Joined: May 06, 2001
Posts: 8
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>
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: make applet as a link to show on the html page
 
Similar Threads
How do you make sure an applet has stopped running
load applet
Message before applet has been loaded
HELP ! how to make applet appear as a link on the html page
Applet pages linking together