<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<META content="MSHTML 5.00.3105.105" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>
<P><FONT class=nf>I am having truoble with the forms.<BR><BR>My problem is as
follows:<BR><BR>I want to have forms in html that change dynamically as the user
enters selections. For example in a drop down menu I have text. and encode. If
the user chooses fonts I want the page to refresh and ask for the fonts,
coordinates and text to be sent. However if the user chooses image the page
should ask for name of image and position etc. Within each of the selection I
have the transfer and accept menu which change the form again according to what
was selected. <BR><BR>My problem is as follows:<BR><BR>The refreshing part is
working fine. I am getting the correct form changes. However if trasfer "source"
is selected together with any accpet value I cannot enter anything in the Source
ID field even though it shows in the form. <BR><BR>I am attaching both the html
code and javascript:<BR><BR><BR>Please help.
Thanks<BR><BR>"font.js"<BR>========================================<BR>var
transfer=0;<BR>var accept=0;<BR><BR>function showSection(aValue)<BR>{<BR><BR>var
fontDiv;<BR>var encodeDiv;<BR>var OffDiv;<BR>var SourceDiv;<BR>var
DestinationDiv; <BR>var FixedDiv;<BR>var HostDiv;<BR>var barDiv;<BR><BR>fontDiv
= document.getElementById('font');<BR>encodeDiv =
document.getElementById('encode');<BR><BR>OffDiv =
document.getElementById('Off');<BR>SourceDiv =
document.getElementById('Source');<BR>DestinationDiv =
document.getElementById('Destination');<BR>FixedDiv =
document.getElementById('Fixed');<BR>HostDiv =
document.getElementById('Host');<BR><BR>if (aValue ==
'font')<BR>{<BR>fontDiv.style.visibility =
'visible';<BR>encodeDiv.style.visibility = 'hidden';<BR>OffDiv.style.visibility
= 'visible';<BR>DestinationDiv.style.visibility = 'hidden';<BR><BR>if
(transfer=='Destination')<BR>{<BR>DestinationDiv.style.visibility =
'visible';<BR>OffDiv.style.visibility = 'hidden';<BR>}<BR>if
(transfer=='Source')<BR>{<BR><BR><BR>SourceDiv.style.visibility =
'visible';<BR><BR>}<BR><BR>if (transfer=='Off')<BR>{<BR><BR>if
(accept=="Fixed")<BR>FixedDiv.style.visibility = 'visible'; <BR>if
(accept=="Host")<BR>HostDiv.style.visibility = 'visible'; <BR>}<BR>if
((transfer==0)||(accept==0) &&
(transfer!='Destination'))<BR>FixedDiv.style.visibility = 'visible';
<BR>}<BR><BR><BR>if (aValue == 'encode')<BR>{<BR>fontDiv.style.visibility =
'hidden';<BR>encodeDiv.style.visibility = 'visible';<BR>OffDiv.style.visibility
= 'hidden';<BR>SourceDiv.style.visibility =
'hidden';<BR>DestinationDiv.style.visibility =
'hidden'<BR>FixedDiv.style.visibility = 'hidden';<BR>HostDiv.style.visibility =
'hidden'; <BR>barDiv.style.visibility =
'hidden';<BR><BR><BR>}<BR><BR>}<BR><BR>function showTransfer(aValue)<BR>{<BR>var
OffDiv;<BR>var SourceDiv;<BR>var DestinationDiv;<BR>var FixedDiv;<BR>var
HostDiv;<BR><BR>OffDiv = document.getElementById('Off');<BR>SourceDiv =
document.getElementById('Source');<BR>DestinationDiv =
document.getElementById('Destination');<BR>FixedDiv =
document.getElementById('Fixed');<BR>HostDiv =
document.getElementById('Host');<BR><BR>identify_transfer(aValue); <BR>if
(aValue == 'Off')<BR>{<BR>OffDiv.style.visibility =
'visible';<BR>SourceDiv.style.visibility =
'hidden';<BR>DestinationDiv.style.visibility =
'hidden';<BR><BR>if((accept=="Fixed")||(accept==0))<BR>FixedDiv.style.visibility
= 'visible';<BR><BR>}<BR>if (aValue == 'Source')<BR>{<BR>OffDiv.style.visibility
= 'visible';<BR>SourceDiv.style.visibility =
'visible';<BR>DestinationDiv.style.visibility =
'hidden';<BR>FixedDiv.style.visibility =
'hidden';<BR><BR>if((accept=="Fixed")||(accept==0))<BR>FixedDiv.style.visibility
= 'visible';<BR>}<BR><BR>if (aValue ==
'Destination')<BR>{<BR>OffDiv.style.visibility =
'hidden';<BR>SourceDiv.style.visibility =
'hidden';<BR>DestinationDiv.style.visibility =
'visible';<BR>FixedDiv.style.visibility = 'hidden';<BR>HostDiv.style.visibility
= 'hidden';<BR>}<BR>}<BR><BR><BR>function showAccept(aValue)<BR>{<BR>var
FixedDiv,HostDiv;<BR>FixedDiv = document.getElementById('Fixed');<BR>HostDiv =
document.getElementById('Host');<BR><BR>identify_accept(aValue);<BR><BR>if
(aValue == 'Fixed')<BR>{<BR>FixedDiv.style.visibility =
'visible';<BR>HostDiv.style.visibility = 'hidden'; <BR>}<BR><BR>if (aValue ==
'Host')<BR>{<BR>FixedDiv.style.visibility =
'hidden';<BR>HostDiv.style.visibility = 'visible'; <BR>}<BR>}
<BR><BR><BR><BR>function
identify_transfer(value)<BR>{<BR>transfer=value;<BR>}<BR><BR><BR>function
identify_accept(value)<BR>{<BR>accept=value;<BR>}<BR><BR>=========================================<BR>"index.html"<BR>=========================================<BR><HTML>
<BR><HEAD> <BR><TITLE>This is on
Linux!!!</TITLE><BR><SCRIPT LANGUAGE="JavaScript"
src="font.js"><BR></SCRIPT> <BR><BR><BR><BR></HEAD>
<BR><BODY> <BR><FORM NAME="form1"
ACTION="http://200.123.101.203/Javelin/javascript/server.cgi"<BR>METHOD="GET">
<BR>Edit Layout:<BR><BR><SELECT NAME="card_tools"
<BR>ONCHANGE="showSection(this.value);" > <BR><OPTION
VALUE="font">Font</OPTION> <BR><OPTION
VALUE="encode">Encode</OPTION> <BR></SELECT>
<BR><BR><BR><BR><BR><DIV ID="font" <BR>STYLE="position: absolute;
visibility: visible"> <BR>Font name:<BR><BR><SELECT
NAME="font_type"><BR><option>SWS060R<BR><option> SWS080R
<BR><option> SWS100R<BR><option> SWS140R <BR><option> SWS180R
<BR><option> SWS240R </SELECT><BR><BR><BR>X
coordinate:<BR><INPUT NAME="X" TYPE="TEXT" SIZE="3"><BR><BR> <BR>Y
coordinate:<BR><BR><INPUT NAME="Y" TYPE="TEXT"
SIZE="3"><BR><BR><BR>Justify:<BR><SELECT
NAME="justify"><BR><option> Left<BR><option> Centre
<BR><option>
Right</SELECT><BR><BR><BR><BR>Rotation:<BR><SELECT
NAME="rotation"><BR><option> Horizontal<BR><option>
Vertical<BR><option> Reverse Horizontal<BR><option> Reverse Vertical
</SELECT><BR><BR><BR><BR>Transfer:<BR><SELECT NAME="transfer"
<BR>ONCHANGE="showTransfer(this.value);" > <BR><OPTION
VALUE="Off">Off</OPTION> <BR><OPTION
VALUE="Source">Source</OPTION><BR><OPTION
VALUE="Destination">Destination</OPTION><BR></SELECT>
<BR><BR><BR><BR><BR><DIV ID="Off" <BR>STYLE="visibility: visible">
<BR><BR>Accept:<BR><SELECT
NAME="accept"<BR>ONCHANGE="showAccept(this.value);"><BR><OPTION
VALUE="Fixed">Fixed</OPTION><BR><OPTION
VALUE="Host">Host</OPTION> <BR></SELECT><BR><BR></DIV>
<BR><BR><DIV ID="Source" <BR>STYLE="position: absolute; visibility:
hidden"> <BR><BR><BR>Source ID:<BR><INPUT NAME="source_id"
TYPE="TEXT" SIZE="20"> <BR><BR></DIV> <BR><BR><DIV ID="Destination"
<BR>STYLE="position: absolute; visibility: hidden"> <BR><BR>Destination
ID:<INPUT NAME="destination_id" TYPE="TEXT" SIZE="20">
<BR><BR></DIV><BR><BR><BR><DIV ID="Fixed" <BR>STYLE="position:
absolute; visibility: visible">
<BR><BR><BR><BR><BR><BR><BR>Fixed Text:<BR><BR><INPUT
NAME="fixed" TYPE="TEXT" SIZE="20"><BR><BR></DIV> <BR><BR><DIV
ID="Host" <BR>STYLE="position: absolute; visibility: hidden">
<BR><BR><BR><BR><BR><BR><BR>Maximum
Characters:<BR><BR><INPUT NAME="host" TYPE="TEXT"
SIZE="20"><BR><BR></DIV> <BR></DIV> <BR><BR><DIV ID="encode"
<BR>STYLE="position: absolute; visibility: hidden"> <BR><BR><BR>Field
Name:<BR><SELECT NAME="encode_name"><BR><OPTION>
IATA<BR><OPTION> ABA<BR><OPTION> MINTS
</SELECT><BR><BR><BR><BR>Strarting Position: <BR><INPUT
NAME="Positon" TYPE="TEXT"
SIZE="3"><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><INPUT
TYPE="SUBMIT"><BR></DIV>
<BR></FORM><BR></BODY><BR></HTML></FONT></P>
<P><FONT class=nf><BR>---</FONT></P>
<P><FONT class=nf>Checked by AVG anti-virus system (<A
href="http://www.grisoft.com">http://www.grisoft.com</A>).<BR>Version: 6.0.504 /
Virus Database: 302 - Release Date:
7/24/03</FONT></P></FONT></DIV></BODY></HTML>