Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Creating Form Elements with VBScript

Posted on 2006-04-21
3
Medium Priority
?
284 Views
Last Modified: 2012-06-21
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.
0
Comment
Question by:kruegerste
  • 2
3 Comments
 
LVL 19

Accepted Solution

by:
peh803 earned 1000 total points
ID: 16511178
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.

Thanks,
Phil / peh803
0
 
LVL 4

Author Comment

by:kruegerste
ID: 16511225
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.
0
 
LVL 19

Expert Comment

by:peh803
ID: 16511295
Glad to help! Let me know if I can provide any additional assistance.

Regards,
Phil
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question