[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 135
  • Last Modified:

HTML parameter

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>
0
udic
Asked:
udic
  • 3
  • 2
1 Solution
 
udicAuthor Commented:
Edited text of question.
0
 
outcastCommented:
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.
0
 
udicAuthor Commented:
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
0
 
outcastCommented:
try this:

<script language="JavaScript">
var MyParam
......
document.write('<applet code=MyClass.class codebase='+ MyParam + 'height=0 name=name width=0></applet>')
......
</script>
0
 
udicAuthor Commented:
10x alot
   udi
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now