Hello my friends.
This is a htm page that contains a form open in window popUp ( page daughter ).
This form insert a value in the one hidden field called "tec", in other form open in the page mother.
As you can see the select contains multiple attribute.
The problem is that by selecting more names from select tec form page daughter, in the hidden field called "tec" form page mother I have only the first name, for example:
I select value gabriele and giuseppe form page daughter, in the hidden field called "tec" form page mother I have only gabriele.
Why?
Can you help me ???
Expand|Select|Wrap|Line Numbers
- <script language="Javascript">
- <!--
- function insertf1(f1) {
- if ( FORM1.tec.value.length > 0 && FORM1.opr.value.length > 0 ) {
- window.opener.document.FORM1.tec.value=f1;
- alert("Dati correttamente salvati.");
- window.close();
- } else {
- alert("Dati obbligatori.");
- FORM1.tec.focus();
- }
- }
- // -->
- </script>
- </head>
- <body>
- <form name="FORM1">
- <select size="15" name="tec" multiple>
- <option>Seleziona</option>
- <option value="GABRIELE">GABRIELE</option>
- <option value="GIUSEPPE">GIUSEPPE</option>
- <option value="DOMENICO">DOMENICO</option>
- </select>
- <select size="15" name="opr" multiple>
- <option>Seleziona</option>
- <option value="GIOVANNI">GIOVANNI/option>
- <option value="GIACOMO">GIACOMO</option>
- <option value="DOROTEO">DOROTEO</option>
- </select>
- <a href="javascript:insertf1(document.FORM1.tec.value+';'+document.FORM1.opr.value);">
- <img border="0" src="salva.gif" width="84" height="16">
Expand|Select|Wrap|Line Numbers
- <INPUT TYPE="hidden" NAME="tec" VALUE="-;-">