I have 2 comboboxes on an ASP page and I need the following behavior:
1. user selects a value on combobox1
2. this fires a javascript that uses Ajax to call some VBscript, I will call it queryDB()
3. the VBScript function queryDB() returns a recordset of records from the database
4. bind the recordset to ComboBox2
The main thing that I'm stuck on is part 2, using Ajax to call a VBScript function. I now know I have to use some kind of Ajax because the page cannot postback. Does anyone know how to do this? any code samples would be great.
also is it possible to use a recordset or do i have to return the data in xml form? I posted a similar question already but I am posting this because I realize that I did not mention Ajax in my other initial post and this is the key point that I need to figure out, how to use Ajax with Classic ASP.
thanks