473,323 Members | 1,550 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

Need to skip field in tab order

Hello,

I would like to skip over a hyperlink in the tab order. The link is not that
important, and I don't mind that they have to click to get it.

I have tried OnFocus="this.blur();" on the link, which works, but the focus
does not move to the *next* field (per the docs it's indeterminate where
blur() sends the focus, likely up to the window, which is what happens in IE).

What I think I want is the equivalent of OnFocus=NextField.focus(), but I
can't figure out the syntax of getting NextField (i.e. [this+1]).

Thanks,

Bill
Nov 19 '05 #1
1 1845
We use a set focus function that we've built into a utility class. Then the
webform calls the function. If I have a textbox named txtClient to which I
want to set the focus, I would call the function as follows:

Utilities.sbSetFocus(Me.txtClient, Page)

Here is the function:

Public Shared Sub sbSetFocus(ByVal FocusControl As Control, ByRef pgPage As
System.Web.UI.Page)

Dim Script As New System.Text.StringBuilder
Dim ClientID As String = FocusControl.ClientID

With Script
.Append("<script language='javascript'>")
.Append("document.getElementById('")
.Append(ClientID)
.Append("').focus();")
.Append("</script>")
End With

pgPage.RegisterStartupScript("setFocus", Script.ToString())
End Sub

"Bill Borg" wrote:
Hello,

I would like to skip over a hyperlink in the tab order. The link is not that
important, and I don't mind that they have to click to get it.

I have tried OnFocus="this.blur();" on the link, which works, but the focus
does not move to the *next* field (per the docs it's indeterminate where
blur() sends the focus, likely up to the window, which is what happens in IE).

What I think I want is the equivalent of OnFocus=NextField.focus(), but I
can't figure out the syntax of getting NextField (i.e. [this+1]).

Thanks,

Bill

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: mr.iali | last post by:
Hi Everyone I would like to get into software developent using a programming language like c++, java or pl/sql for oracle. I have no idea where to start from. Which language is there more...
59
by: AK | last post by:
I tried to google "skip scan DB2" but came up with nothing. Does DB2 have the feature under a different name?
2
by: qsweetbee | last post by:
I have a form(fAddUsers) in my database. It is continue form for data entry. Some fields are required fields. Some are optional fields. There is 1 particular filed(TokenExpirationDate)on the form...
24
by: Robin Cole | last post by:
I'd like a code review if anyone has the time. The code implements a basic skip list library for generic use. I use the following header for debug macros: /* public.h - Public declarations and...
5
by: Clownfish | last post by:
I have a report that joins 12 external tables, and works great. However, there is a time when I wish to skip printing a particular record. Background: The 12 tables all have the same fields,...
9
by: MrHelpMe | last post by:
Hello again experts, I have successfully pulled data from an LDAP server and now what I want to do is drop the data into a database table. The following is my code that will insert the data but...
13
by: Alex | last post by:
For example, i have some part of XML file. <AppSettings> <Object ClassVersion="1.0.0.0" Type="AppSettings"> <Fields> <Field Name="App_ID" Type="System.Int32"> <Value> <int>-1</int> </Value>...
6
by: PamGnewSQLuser | last post by:
I have a table with 3 different options in field 1 - if blank I need to skip - if equal to BRANCH I need to move value in field 2 to field 3 until EQUAL to BRANCH again - if any other value move...
0
by: LanaR | last post by:
Hello, one sql statement is causing severe performance issue. The problem occurs only in UDB environment, the same statemnt on the mainframe is running fine. I have an explain output from the sql....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.