Colin
Here is a much cut down code sample
___________________________________________________________________
<HTML>
<HEAD>
<TITLE>AS/400 Field Selection Test</TITLE>
</HEAD>
<BODY>
<FORM name="FORM1" METHOD="POST"
ACTION="http://123.456.789.098:1030/WSG/509170/QTMTWSG/QTWSG05563">
<INPUT TYPE="HIDDEN" NAME="SESSION"
VALUE="/7EAF9E5923B3F788/130EF2A8"><PRE><INPUT TYPE="SUBMIT"
NAME="/7EAF9E5923B3F788/130EF2A8/BUTTON.999-999=*E" VALUE="Enter">
<BR><FONT COLOR="0000FF">STIPPLE IV </FONT> <FONT
COLOR="0000FF">Rob Dixon </FONT> <FONT
COLOR="0000FF">Rob Dixon Collection </FONT>
<BR>
<BR>
<BR>
<FONT COLOR="FFFF00"> Our Data</FONT> <INPUT TYPE="TEXT"
NAME="AFIELD" VALUE="" SIZE=64 MAXLENGTH=64>
<FONT COLOR="FF00FF">CHOOSE </FONT> <FONT
COLOR="FF00FF"> </FONT><FONT COLOR="BLACK">
<SCRIPT LANGUAGE="JavaScript">
var num;
function prmpt()
{
document.forms(0).AFIELD.value = num
}
</SCRIPT><FONT COLOR="BLUE"><FONT COLOR="YELLOW"><B> Press ENTER
to continue</B></FONT><FONT COLOR="BLACK"> (for INDEX, type . then * or
ID and ENTER) <BR> <BR>
</FONT><FONT COLOR="BLUE"><A
ONMOUSEDOWN="num='1';prmpt()"><B>Brill</A>,</TT></B></FONT><FONT
COLOR="BLACK"> about 7 1/2 miles N.W. of Thame,</FONT><FONT
COLOR="BLUE"><TT> a parish in the hundred of <A
ONMOUSEDOWN="num='5';prmpt()"><B>Ashendon</A></B> in the county of <A
ONMOUSEDOWN="num='7';prmpt()"><B>Buckinghamshire</B></A>, was part of
<BR><A ONMOUSEDOWN="num='9';prmpt()"><B>Bernewood Forest</B></A>. Until
recently, the living was a <A
ONMOUSEDOWN="num='12';prmpt()"><B>perpetual curacy</B></A> in the
diocese of <A ONMOUSEDOWN="num='14';prmpt()"><B>Oxford</B></A>.
<BR> <BR></FONT><FONT COLOR="GREEN">Server=ERROSIII
Task=WORKGROUP</FONT><FONT COLOR="BLACK"><BR> </FONT>
<INPUT TYPE="SUBMIT" NAME="/7EAF9E5923B3F788/130EF2A8/BUTTON.999-999=*E"
VALUE="Enter"><INPUT TYPE="SUBMIT"
NAME="/7EAF9E5923B3F788/130EF2A8/BUTTON.999-999=*U" VALUE="Page
Up"><INPUT TYPE="SUBMIT"
NAME="/7EAF9E5923B3F788/130EF2A8/BUTTON.999-999=*V" VALUE="Page Down">
</FORM>
</BODY>
</HTML>
____________________________________________________________________________
This particular example I have taken from a history site that I am
developing. but the same code will be used for all applications. If you
left click on one of the links in bold blue, the number of the link will
be displayed in the input field. The operator can then click on ENTER
to send the number to the AS/400 and the application will automatically
navigate to the relevant record in my neural database. The HTML and
Javascript below the INPUT field are generated on the fly by my system.
There are no stored URL's, HTML or Javascript in the system. I intend
to enhance it so that clicking on the link will not only put the number
in AFIELD but also submit the ENTER button.
This sample works, but I have had to change the name of the field
AFIELD.007-016 in the sample to AFIELD to make it work. Regrettably the
name AFIELD.007-016 is generated and I cannot change it until I get
round to doing my own CGI programming.
Any ideas? Is there another way not using Javascript that might work?
All help gratefully received
Rob Dixon
Colin Williams wrote:
Rob,
im not 100% clear on what your trying to do, can you post a section of code?
cheers
Colin.W
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.