Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


HTML parameter

Posted on 1999-08-02
Medium Priority
Last Modified: 2010-05-18
How can i create parameter (like #define in c++) in HTML page and use it later at the page:

define parameter MyParam
use the parameter  later:
<applet code="MyClass.class" codebase=MyParam height="0" name="name" width="0"> </applet>
Question by:udic
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Author Comment

ID: 1852626
Edited text of question.

Expert Comment

ID: 1852627
Why not define and evaluate the parameter in your Java class
file? If the MyClass.class is a share file, there're two
ways. If your server OS is NT, you can easily implement it
with ASP code, for example:
MyParam = 1111 'or set it's value from user information DB
<applet code="MyClass.class" codebase=<%=MyParam%> height="0" name="name" width="0"> </applet>

otherwise, you can try to let this HTML page be created from
a CGI.

Author Comment

ID: 1852628
sorry but i think that its not the answer i wait for,because i dont want to want to use cgi or asp
thanks anyway

Accepted Solution

outcast earned 80 total points
ID: 1852629
try this:

<script language="JavaScript">
var MyParam
document.write('<applet code=MyClass.class codebase='+ MyParam + 'height=0 name=name width=0></applet>')

Author Comment

ID: 1852630
10x alot

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question