473,549 Members | 2,708 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 1467

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...
1
1538
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
1929
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
2435
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,...
2
3071
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...
4
14880
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
3457
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...
11
24974
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...
8
10180
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...
0
7524
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...
0
7720
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. ...
0
7960
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7812
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6048
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...
1
5372
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...
0
5089
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1061
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
766
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...

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.