473,486 Members | 2,340 Online
Bytes | Software Development & Data Engineering Community
Create 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.servervariables("script_name")
if request.servervariables("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="<%=action%>" method="post" id="getcityform">
<fieldset><legend>Select Location</legend>
<table summary="Select Your Location">
<thead>
<tr>
<th><label for="mycity" id="mycity1">City/Zip: </label></th><th><label
for="mystate" id="mystate1">State: </label></th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="text" name="mycity" id="mycity" value="<%=mycity%>"
size="10" /></td><td>
<select name="mystate" id="mystate" style="width:4em">
<option value="">Choose</option><%
Set locationrs = Server.CreateObject("ADODB.Recordset")
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="<%=getstateid%>" <%if getstateid = 6 and mystate= ""
then%>selected="selected" <% elseif getstateid = mystate
then%>selected="selected"<%end if%>><%=getstate_abbr%></option>
<%locationrs.MoveNext
wend
locationrs.Close
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="submitcity" />
</fieldset>
</form>

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

Jul 22 '05 #1
0 1462

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,...
1
1533
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"...
4
1925
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
2426
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...
2
3066
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...
4
14878
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
3452
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...
11
24947
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...
8
10167
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...
0
7099
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,...
0
7319
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5430
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,...
1
4864
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...
0
3069
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...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
262
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...

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.