[thelist] Clever way to mix Javascript and VBScript

Mike Migurski mike-evolt at teczno.com
Fri Nov 7 11:15:09 CST 2003


>I have a form and when a user enters an ID number, the field right next
>to it shows the name associated to the ID number. Basically, or
>functionally, when the field has changed or OnBlur, the javascript would
>go match that entry to a possible pre-known set of values and spit the
>corresponding name to the field next to it.
>
>:-\ Do you think I could use VBscript to call a known set of values, then
>write the code that would write the corresponding JavaScript function.

I assume you mean using VB on the server, right? Sure, no problem, very
easy. Just have it write out an array where the ID number is the index.
A 20000 element array might be taxing for a client, but you can easily
test this by finding a slow/old machine and checking how much data you can
plow into it before it becomes unbearable.

---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca            http://mike.teczno.com/contact.html



More information about the thelist mailing list