473,611 Members | 2,229 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cannot get cursor into field in form

This is driving me crazy. The markup is valid, the CSS is valid, I'm
serving it right, and I still cannot figure out why I cannot get the
cursor into the form element. I have tried on Opera, Firefox and IE -
all the same.

The url is question is http://www.american-loyalty-card.com/beta/ and
the form in question is at the upper left hand corner. The legend is
Select Location.

I don't think this is a serverside issue, as it is not throwing any
serverside errors, but I thought I would throw mspiag in case anyone
there can see something obvious.

Thanks in advance to anyone who can find out why this is occuring, and
maybe how fix it.

ASP Classic stuff:
<%
action = request.serverv ariables("scrip t_name")
if request.serverv ariables("query _string") <> "" then
action = action & "?" & replace(request .querystring,"& ","&amp;")
end if%>
<div id="getcity">
<p class="skipnav" ><a href="#content" >Skip to Content</a></p>
<form action="<%=acti on%>" method="post" id="getcityform ">
<fieldset><lege nd>Select Location</legend>
<table summary="Select Your Location">
<thead>
<tr>
<th><label for="mycity" id="mycity1">Ci ty/Zip: </label></th><th><label
for="mystate" id="mystate1">S tate: </label></th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="text" name="mycity" id="mycity" value="<%=mycit y%>"
size="10" /></td><td>
<select name="mystate" id="mystate" style="width:4e m">
<option value="">Choose </option><%
Set locationrs = Server.CreateOb ject("ADODB.Rec ordset")
getcitysql = "SELECT id, state_abbr FROM state ORDER BY id "
'Response.Write "<br />getcitysql: " & getcitysql
locationrs.Open getcitysql, oConn
while not locationrs.EOF
getstateid = trim(locationrs ("id"))
getstate_abbr = trim(locationrs ("state_abbr "))
%>
<option value="<%=getst ateid%>" <%if getstateid = 6 and mystate= ""
then%>selected= "selected" <% elseif getstateid = mystate
then%>selected= "selected"< %end if%>><%=getstat e_abbr%></option>
<%locationrs.Mo veNext
wend
locationrs.Clos e
set locationrs = nothing
%>
</select>
</td>
</tr>
</tbody>
</table>
<label for="remember" id="remember1"> <input type="checkbox"
name="remember" id="remember" value="y" <%if remember="y" or
remember="" then%>checked=" checked"<%end if%> /></label>Remember< br />
<input type="submit" value="Submit" name="submitcit y" />
</fieldset>
</form>

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jul 22 '05 #1
0 1475

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

Similar topics

0
356
by: arbpen2003 | last post by:
This is driving me crazy. The markup is valid, the CSS is valid, I'm serving it right, and I still cannot figure out why I cannot get the cursor into the form element. I have tried on Opera, Firefox and IE - all the same. The url is question is http://www.american-loyalty-card.com/beta/ and the form in question is at the upper left hand corner. The legend is Select Location. I don't think this is a serverside issue, as it is not...
1
1542
by: Merlin | last post by:
Hi there, I would like to set the cursor upon loading a page on a text field which has already been populated. The problem with this code: <script language="JavaScript1.1" type="text/javascript"> <!-- document.send_mail.message.focus();
4
1933
by: Filips Benoit | last post by:
Dear All, How to clearly show the active (cursor) field. A very large form having about 100 inputfields. After pausing input the user must see a once where the cursor is! Thanks, Filip
5
2443
by: ChadDiesel | last post by:
My basic question is why does my print report button on my subform print a blank report when my cursor is on a blank entry line? Here is a more detailed explanation of my problem. I have a form that contains shipment destination information and a subform that contains boxes for that shipment. The main form is a table called Ship_Info, and the subform is a table called Label_Info. They both contain and are linked by a field called...
2
3074
by: ThunderMusic | last post by:
Hi, I have a form in which there are many <asp:textbox> tags. When I run the form, we use tab to navigate across the textboxes, but one of our client noticed that when we navigate to some readonly textboxes, the cursor (text cursor, not mouse cursor) disapears and when we tab to the next textbox and come back (shift-tab), not it's ok. Notice that when we navigate to each textbox, the text is automaticaly selected which is not the case for...
4
14884
by: david.isaacks | last post by:
Is there a way on a form of making one field the default field such that as soon as you navigate to the form page, the cursor is sitting on that field ready for data to be entered.
3
3459
by: mckbill | last post by:
Is there a way I can direct the cursor to a specific field (variable) in a form by typing the field name while in form view? I have a form with many fields, and it would be nice if there were some method, similar to FIND RECORD (e.g., CTL + F ), where a dialog box would pop up and let me enter the field name, and then jump the cursor to that location. I currently do my edits by locating a record to be changed by ID using CTL+F and...
11
24997
by: sajitk | last post by:
I am new to access and i am trying to build a database for enntering Subscription details of a particular journal. Wat I want is that FirstName field on the form should not be left blank. If the user does not enters the First Name and moves to the field, there should be msgbox prompt, prompting the user that the name cannot be left blank and the cursor should be back on the Firstname text box. I have tried using the foll code: Private...
8
10182
by: Dbar10 | last post by:
I have a form with several subforms. In the main form I need to run a requery for several subforms to update info. But when I requery the cursor goes back to the top of the form. I need the cursor to end up in the next field after the field that contained the requery command. I have done this before but I can't remember the code. Can anyone refresh my memory? Thanks Assitional Info: Main Form = Billing Work Form Field that has requery...
0
8149
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8097
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8596
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8240
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7038
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4042
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1692
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.