Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Re: dynamic dropdownbox


Message #1 by "prot shan" <prot_shan@r...> on 3 Dec 2001 05:34:43 -0000
I rely apreshate your help, but I am trying to keep it an the client side 
I am working on the lead which KATHLEEN passed on.
thanks,
Sam


> --0-1852211032-1007387939=:13154
> Content-Type: text/plain; charset=us-ascii
> 
> 
> The method is correct. It is one of the options collection of the select 
element. I used this method (in IE) and works great! Check the code sent, 
it might contain some error (I don't know I had no time to test it). On 
server-side (if you want to do this) is other way. You have a form with 
two select elements. When the user choose an option from the first select 
element, the information will be submitted on the server, and the server 
will respond depending on the selection. 
> If the user selects Numbers, the server will send (ASP code):
> <% for i = 0 to 2 %>
>   <select id="select1">
>     <option><%=i%></option>
>   </select>
> If the user selects Letters, the server will send (ASP code): 
> <% for i = 0 to 2 %>
>   <select id="select1">
>     <option><%=Chr(65 + i)%></option>
>   </select>
> 
> The first select is like that:
> <select id="select1" onchange="form1.submit()"> <!-- form1 is the name 
of the form you send -->
>   <option>Numbers</option>
>   <option>Letters</option>
> </select>
> On request, the server will test the Request.QueryString("Choice"), 
where the choice is a variable containing the option choosed by user.
> 
> 
> This will help?
> 
>   Sam Lewitan <slewitan@e...> wrote: Dear KATHLEEN. M. WHALEN,
> Thank you for the link you sent but I need the dropdown options to be
> dynamic.
> 
> Dear DANIEL RADU,
> Thank you for your code it is on the right track but it doesn't work I 
get
> an error on the ".add" I
> guess that isn't the proper name of the method.
> 
> If either of you, or anybody else, have other suggestions I would 
appreciate
> it.
> 
> 
> Thanks again,
> Sam Lewitan
> SLewitan@E...
> http://www.EBCpro.com
> where EveryBusinessCounts
>  (xxx)xxx-xxxx
> (Please note new email address)
> 
> 
> 
> Read the future with ebooks at B&N
> http://service.bfast.com/bfast/click?
bfmid=2181&sourceid=38934667&categoryid=rn_ebooks
> 
> 
> ---------------------------------
> Do You Yahoo!?
> Buy the perfect holiday gifts at Yahoo! Shopping.
> --0-1852211032-1007387939=:13154
> Content-Type: text/html; charset=us-ascii
> 
> <P>The method is correct. It is one of the <EM>options</EM> collection 
of the <EM>select</EM> element. I used this method (in IE) and works 
great! Check the code sent, it might&nbsp;contain some error (I don't know 
I had no time to test it). On server-side (if you want to do this) is 
other way. You have a form with two <EM>select</EM> elements. When the 
user choose an option from the first select element, the information will 
be submitted on the server, and the server will respond depending on the 
selection. <BR>If the user selects Numbers, the server will send (ASP 
code):
> <P>&lt;% for i = 0 to 2 %&gt;<BR>&nbsp; &lt;select 
id="select1"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;option&gt;&lt;%=i%
&gt;&lt;/option&gt;<BR>&nbsp; &lt;/select&gt;
> <P>If the user selects Letters, the server will send (ASP code): 
> <P>&lt;% for i =&nbsp;0 to&nbsp;2&nbsp;%&gt;<BR>&nbsp; &lt;select 
id="select1"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;option&gt;&lt;%=Chr(65 + i)%
&gt;&lt;/option&gt;<BR>&nbsp; &lt;/select&gt;</P>
> <P>The first select is like that:
> <P>&lt;select id="select1" onchange="form1.submit()"&gt; &lt;!-- form1 
is the name of the form you send --&gt;<BR>&nbsp; 
&lt;option&gt;Numbers&lt;/option&gt;<BR>&nbsp; 
&lt;option&gt;Letters&lt;/option&gt;<BR>&lt;/select&gt;
> <P>On request, the server will test the Request.QueryString("Choice"), 
where the choice is a variable containing the option choosed by 
user.<BR></P>
> <P>This will help?</P>
> <P>&nbsp; <B><I>Sam Lewitan &lt;slewitan@e...&gt;</I></B> wrote: 
> <BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: 
#1010ff 2px solid">Dear KATHLEEN. M. WHALEN,<BR>Thank you for the link you 
sent but I need the dropdown options to be<BR>dynamic.<BR><BR>Dear DANIEL 
RADU,<BR>Thank you for your code it is on the right track but it doesn't 
work I get<BR>an error on the ".add" I<BR>guess that isn't the proper name 
of the method.<BR><BR>If either of you, or anybody else, have other 
suggestions I would appreciate<BR>it.<BR><BR><BR>Thanks again,<BR>Sam 
Lewitan<BR>SLewitan@E...<BR>http://www.EBCpro.com<BR>where 
EveryBusinessCounts<BR> (xxx)xxx-xxxx<BR>(Please note new email address)
<BR><BR><BR>---<BR>
radudanielro@y...<BR>To unsubscribe send a blank email to $subst
('Email.Unsub')<BR><BR>Read the future with ebooks at 
B&amp;N<BR>http://service.bfast.com/bfast/click?
bfmid=2181&amp;sourceid=38934667&amp;categoryid=rn_ebooks</BLOCKQUOTE><p><b
r><hr size=1><b>Do You Yahoo!?</b><br>
> Buy the perfect holiday gifts at <a
> href="http://rd.yahoo.com/O=1/I=brandr-
mailfooter/*http://shopping.yahoo.com">Yahoo! Shopping</a>.
> --0-1852211032-1007387939=:13154--

  Return to Index