Roy, unless you know that your application's clients will use Internet
Explorer only, using VBScript for client-side interaction is not
practical because it isn't supported by other browsers.  VBScript is
typically used just at the server to control creation of the page that
gets sent to the client, while client-side operations are typically done
with Javascript code sent down as part of the page.

You don't say why your JS approach broke down, but if you want to make
stuff appear/disappear on a page based on user actions without returning
to the server then the typical technique is to send everything down to
the client, with only some of it visible, and then allow the onClick or
other events to call JS routines to hide/display the appropriate
information.

You could use VBScript, for example, to read your database and construct
"dynamic" arrays in a page's JS code by Response.Write-ing the required
array code to the page.  The JS code constructed in this manner would be
sent to the page, where it could be called by events on the page to
change your text boxes according to user menu selections.

Of course there's always the simple approach, made even less elegant by
the increasing appearance of powerful .NET applications, in which your
user's menu selections simply call new pages displaying different
information in text boxes.  It isn't as pretty, but sometimes I wonder
if developers are the only ones who notice the difference! :-)

HTH


-----Original Message-----
From: Roy Murdock [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, August 21, 2002 11:48 AM
To: ActiveServerPages
Subject: Dependant text fields


Hi all. I'm new to the list and fairly new to asp.
My dilemma is this: I need a dynamic menu that determines what dynamic
to display in several text boxes. I am able to do this with static text
info, an array of arrays and a dynamic menu in JS but that solution is
not practical. I think my solution is going to be in dynamic arrays and
have explored them some in VBScript but can't find anything in JS. Can
anyone help?

Thanks
Roy

-----Original Message-----
 
---
You are currently subscribed to activeserverpages as:
[EMAIL PROTECTED] To unsubscribe send a blank email to
%%email.unsub%%

---
You are currently subscribed to activeserverpages as:
[EMAIL PROTECTED] To unsubscribe send a blank email to
%%email.unsub%%



---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to