Aengus Lawlor wrote:

> Way back in March (!), I asked about selecting multiple logs in
> Anlgform.exe, using the <SELECT MULTIPLE> tag, which creates multiple
> <key=value> pairs in the parameter list it passes to the form handler.
> Anlform.exe expects <key=value,value,value>, which isn't easy to
> automate in a form.

I agree this would be a nice improvement. For now you can try some
JavaScript.

<FORM NAME="theForm">
...
<SELECT MULTIPLE NAME="logfiles" ONCHANGE="setLogs(this)">
    <OPTION VALUE="ex990101.log">1999 Jan 01</OPTION>
    <OPTION VALUE="ex990102.log">1999 Jan 02</OPTION>
    <OPTION VALUE="ex990102.log">1999 Jan 03</OPTION>
    ...
</SELECT>
<INPUT TYPE="HIDDEN" NAME="lo">
...
</FORM>
...
<SCRIPT LANGUAGE="JavaScript 1.1">
function setLogs( selector ) {
    var logs = "";
    for( var i=0; i < selector.length; i++ ) {
        if( selector.options[i].selected == true ) {
            logs += selector.options[i].value + ",";
        }
    }
    logs = logs.substring( 0, logs.length - 1 );
    document.theForm.lo.value = logs;
}
</SCRIPT>

HTH,

--
Jeremy Wadsack
OutQuest Magazine
a Wadsack-Allen publication


------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/analog-help@lists.isite.net/
------------------------------------------------------------------------

Reply via email to