Dear Gibbon M. P. Tamba,

Sure it is possible, and from my experience there are three
ways of doing it.

First, by using JavaScript. You can go for this option ONLY if
the data to be shown in the combo-boxes is not private AND the
amount of data is not huge. In this technique you output
JavaScript to your outgoing HTML stream at run-time using ASP
or whatever. You create arrays and put lists in different array
and make them available on the client-side. This would make
your HTML heavy and people will be able to see all lists using
the View Source option of the browser. But it would be fast and
efficient to handle combo-boxes serially through onchange
event.

Second, by using ASP. This is the most frequently used
technique. On each onchange event of combo-box, you submit the
form to the web-server. There you can analyze the scenario and
according to that you fire the appropriate SQL query/queries
and return the recordset(s). Thereafter you populate the
drop-down boxes as desired. This can be used over large amounts
of data as well as on data that should be kept private. The
only disadvantage is that on each onchange event, the page will
get refreshed.

Third, by using AJAX. It stands for Asynchronous JavaScript And
XML. This is quite an old technique, at least 3-4 years old,
but these days it's sort of a buzz word. It is more an
architectural sort of a thing, and its implementation requires
knowledge of XML/XMLHTTP by using JavaScript. It is a little
bit difficult at first to set up. It would work in exactly the
same way as the ASP technique above, except that the page will
not be refreshed. AJAX has its own disadvantages that should be
studied before implementing it.

But for most purposes, the second technique will do.

Regards
M Kamran Adam
--

--- Gibbon Tamba <[EMAIL PROTECTED]> wrote:

> Dear All,
> 
> Let first i introduce myself. My name is gibbon, i'm
> indonesian. I
> have a problem to displaying data in the combo box. My cases
> is just
> like this. If i select the first combo box then the value
> trigger the
> second combo box via sql query and store the data in it.
> After that, i
> select on of the data in the second combo box, then just like
> before
> the value in the secon combo box trigger the third combo box
> via sql
> query and store the data in it (Serially).
> 
> How can i do this using ASP & Java script? If it is possible,
> is there
> any example source code?
> 
> Thanks,
> 
> Gibbon M. P. Tamba
> 
> 
> 



                
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12h7u2ao0/M=362335.6886445.7839731.1510227/D=groups/S=1705115381:TM/Y=YAHOO/EXP=1122892625/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!</a>.</font>
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to