Advertisement
5_2007-2008 Files/ File Controls/ Input/ Output #183501

Double List Box

Show two list boxes, one to display a list of choices, one to display a list of ordered suggestions. 1ClickDB.com's Query Wizard for Access and SQL Server includes a handy control to move items between two list boxes using JavaScript. This control uses a Server Side VBScript class that is available for free integration into your custom Code Wizard application, or any other ASP based HTML FORM you may have. Here is some sample code showing how to enable this control in your own HTLM FORM: &lt!--#INCLUDE FILE=DoubleBox.asp--> <FORM> <INPUT TYPE=Submit VALUE="Continue > > "> <% dim objDoubleBox set objDoubleBox = New DoubleBox objDoubleBox.doublebox_fields = "ItemOne,ItemTwo,ItemThree" objDoubleBox.doublebox_delimiters ="," objDoubleBox.doublebox_size = 12 objDoubleBox.doublebox_LHeader ="Choose From List:" objDoubleBox.doublebox_RHeader = "Selected" objDoubleBox.doublebox_form = "forms[0]" objDoubleBox.doublebox_name="DoubleBoxForm" objDoubleBox.DrawDoubleBox %> </FORM> After submission, the selected entries will show up as a delimited list in the Request("doubleboxform") variable. This is determined by the value specified for .doublebox_name. Note this control _must_ be embedded in a Form to actual return values. Form can be a POST or GET. This control requires VBScript 5 or later on your ASP server. The JavaScript created by the control is compatible with most old and new browsers. More on the web at http://AccessHelp.net/survival

AI

ملخص الذكاء الاصطناعي: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

كود المصدر
original-source
Upload
التعليقات الأصلية (3)
مسترجع من Wayback Machine