Link to home
Start Free TrialLog in
Avatar of kruegerste
kruegersteFlag for United States of America

asked on

Creating Form Elements with VBScript

I am currently reviewing somebody else's code and I am completely stumped.  It seems they are creating form elements in the following way (for example....):

dim objtextfield
set objtextfield = new textfield
.
.
.
<td>
   <% response.write objtextfield.write("email_address", 40, 40) %>
</td>

--------------------------------
Is this possible to create an html textfield (where email_address is the name, 40 is textfield length and the second 40 is max characters) with just the amount of code I have shown?

I can't find where any function is called and the parameters are passed to it.  I also have never heard of any known vbscript function to enable this kind of code.  But there are no other includes or code and it works.  

The reason I ask is because I need to edit this textfield and add the parameter for read-only but I get an error obviously.  

Please help.  Thanks.
ASKER CERTIFIED SOLUTION
Avatar of peh803
peh803
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kruegerste

ASKER

Thanks for the help.  I was thinking of the word "textfield" as the html keyword textfield and not to a class or function.  New textfield was creating a new instance of the class "textfield" and it was in an include.  

Thanks.
Glad to help! Let me know if I can provide any additional assistance.

Regards,
Phil