Home | Advertising Info17 USERS CURRENTLY ONLINE   
   Site Search Contact Us Friday, March 14, 2025  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 



We didn't realize
the site was so popular.

Other Stuff
 

 
 
vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
Subject: Passing Array on submit of a form
From: bigdog
Date: 1/29/2001 11:02:17 AM
IP: 198.166.214.4



 

Does anyone know how to pass a select array created with javascript with a form on the submit of the form? Here is the code I have on the page. The first list box is filled from the db and the second list box is filled when a person makes a selection from the first list box. I want to pass the all the items in the second listbox when the form is submitted.

This code creates the two select lists and fills the first one.
<TABLE BORDER=0 cellpadding=0 cellspacing=2 width=525>
<tr>
<td>
<br>
<b>Select Department: </b><br>
<select name="dept" size="10" onchange="moveOver();">
<%
while not (RS.EOF)
Response.Write ("<option value=" & QQ & RS("DeptNum") & QQ & ">" & RS("DeptName") & CRLF)
RS.MoveNext()
wend %>
</select></td>
<td><br>
<b>Departments: </b><br>
<select name="deptnum" size="10" width="265" multiple onchange="removeMe();">
</select></td></tr>

</table>

Here is the function to move selected items to the second listbox.
function moveOver()
{
var boxLength = document.DeptForm.deptnum.length;
var selectedItem = document.DeptForm.dept.selectedIndex;
var selectedText = document.DeptForm.dept.options[selectedItem].text;
var selectedValue = document.DeptForm.dept.options[selectedItem].value;
var i;
var isNew = true;
//loop through and test to see if the selected dept is a duplicate. If it is do nothing
if (boxLength != 0) {0


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2025 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages asp source code database MS SQL MS Access .mdb adovbs.inc cookies calendar codes sql commands scripts asp programming tutorials iis web server components CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com