devxlogo

Give Focus to a User-Select HTML Control in VID 6

Give Focus to a User-Select HTML Control in VID 6

Although the Scripting Object Model (SOM) in Visual InterDev 6 makes for quick development, it doesn’t cover all the functionality that you need. For example, in Visual Basic it is easy to give any control the focus. That functionality isn’t built in to VID 6, so you need a combination of server-side and client-side script. The trick is to use some inline ASP/SOM coding to generate the client-side code that gives the focus. In this snippet, the third line gives the focus (a client-side method) to a control that the user selected with a server-side control (Listbox1).

 

devx-admin

Share the Post: