Easy question I'm sure - never written vbscript before 
Author Message
 Easy question I'm sure - never written vbscript before

Let's say I have an html form with a text box for user input and a
listbox to the right.  After the user enters a customer account in the
text box, I want to be able to detect this using the OnChange event,
then open a recordset to find all the products belonging to this
account and populate the listbox with them.
What's the easiest way to do this?
Do I need my VBScript for the event to runat=server in order to open
the recordset, find the products, and assign the <OPTION>'s to a
global server-side variable, and have something like this in my html:
<option><%=myvariable%>?  If I do that, how do I refresh the display
so that the retrieved list shows in the listbox?
Do I instead not run the event trigger as runat=server and submit the
page with a querystring or something that tells my main vbscript <%
------ %> code block (outside the event trigger) to find the product
Sorry I'm so clueless, I haven't written any significant event trigger
code before.
Any help would be immensely appreciated.


Mon, 15 Mar 2004 21:41:06 GMT  
 [ 1 post ] 

 Relevant Pages 

1. I'm sure that this is an easy question

2. A very easy question - I'm sure

3. A very easy question - I'm sure

4. easy answer I'm sure, newbie knows nothing

5. Really easy I'm sure...

6. AN EEEAAASSY question I'm sure

7. A Simple Question I'm sure

8. EASY EASY EASY question

9. Easy Question 'F' keys

10. VBScript Question...Easy I hope!

11. simple I'm sure but I can't crak it

12. static array, i'm sure it's possible


Powered by phpBB® Forum Software