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
   <% response.write objtextfield.write("email_address", 40, 40) %>

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.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This looks like someone has written an HTML generator class and is using it here.  Try looking for an include file somewhere that references textfield.asp.  

This line: set objtextfield = new textfield is the creation of an object reference variable called objtextfield.  If you can find the source code to the textfield class, you should be able to see how to implement disabled functionality.  

Perhaps it's something like objtextfield.disabled = true or something?

Anyways, let me know.

Phil / peh803

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kruegersteAuthor Commented:
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.  

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

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.