Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Activate a Field for editing

Status
Not open for further replies.

JavaToPerlNowVB

Programmer
Jul 14, 2005
84
US
I have a form, which I have created using xml, and i use some vbscripting to handle some action in that form. I want to write a small code to activate a field to an editable mode when the user click a button. I dont VBScripting syntax that well.

thanks
 
vbs and js the same:
[tt] objelementreference.focus()[/tt]
Your problem is to get the reference properly.
 
thanks, this means that it takes boolean value where i can do
objelementreference.focus(true);
or is there a function in vbs something like
field.setEditable(true);
I am so used to java so, sorry if i ask none related question.
 
In dhtml, focus() takes no argument. There isn't neither setEditable method. (Those are java syntax.) Instead, if you have reason to concern editability, you may look at readonly attribute and toggle it to false as needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top