473,408 Members | 1,871 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,408 software developers and data experts.

focus and hidden, errors in IE 6

<head>
<script LANGUAGE="javascript" >
function div6yes() {
MMDiv6.style.visibility='visible';
framenewinstall.date.focus();
}
function div6no() {
MMDiv6.style.visibility='hidden';
}
</script>
</head>

My form name is framenewinstal.

My html in the body looks like:

<p><font size="3" color="#FF0000"></font> Should the PM contact
the customer directly to setup Time and Date?
<input type="RADIO" tabindex="2" name="PM to contact the Customer to
schedule" onClick="div6no();" value="yes"> Yes
<input type="RADIO" name="PM to contact the Customer to
schedule" onClick="div6yes();" value="no">
No &nbsp;<font size="3"
color="#FF0000">*</font>&nbsp;&nbsp;&nbsp;<br>
<div id="MMDiv6" style="visibility:hidden">
<table width="100%" border="0" cellspacing="2"
cellpadding="2" dwcopytype="CopyTableRow">
<tr>
<td class="formLabel" width="13%"><label
for="date">First
Preferred Service Delivery Date:</label> </td>
<td class="formElement" width="87%">
<input type="TEXT" id="date" tabindex="2"
name="Preferred Service Delivery Date">
<font size="2">( Format is MM/DD/YY)</font> </td>
</tr> <tr>
<td class="formLabel" width="13%">
<p>First Preferred Service Delivery Time:</p>
</td> <td class="formElement" width="87%">
<input class="form" tabindex="2" type="text"
name="Preferred Service Delivery Time" />
<font size="2">( Time should be in EST)</font>
</td> </tr> <tr>
<td class="formLabel" width="13%">Alternative
Service Delivery
Date:</td>
<td class="formElement" width="87%"><label
for="date">
<input type="TEXT" id="date" tabindex="2"
name="Alternate Service Delivery Date">
<font size="2">( Format is
MM/DD/YY)</font></label></td>
</tr><tr>
<td class="formLabel" width="13%"><label for="date">Alternative
Service Delivery Time:</label></td>
<td class="formElement" width="87%">
It works fine. But IE is saying: "Error:Object doesn't support this
property or method." How can I fix this?

Jul 23 '05 #1
1 1638

Well, if you use name="date" you can address it through
document.FORMNAME.date, if you use and ID instead, which is what you're
using, you use document.getElementById('date'), which is why you get the
error.
Danny
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Jul 23 '05 #2

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

Similar topics

1
by: PK9 | last post by:
On my page, I want to set the focus to the top of the page (where I have a message in a label) after a button is clicked. How can I use javascript on the server side to set the focus either to a...
5
by: Paul E Collins | last post by:
I have a Web form with a number of text boxes. If the user submits the page with some text boxes filled in, those then become plain text (with accompanying <input type="hidden"> fields for when the...
6
by: MickG | last post by:
Hi, I am trying to validate these values, this seems to work fine for the phone number and name but I am trying to get the program to fail to submit and set the focus on the date when 2006 is...
17
by: Neil Ginsberg | last post by:
OK, this is a stupid thing, but I can't seem to get this to work. I have a form with a subform (in continuous form view). A combo box on the main form has code in the AfterUpdate event which adds a...
4
by: Nick Wedd | last post by:
I have a test page http://www.files.maproom.org/00/12/q/w.html which almost does what I want. The idea is that, when you hover the mouse over one of the dates near the top of the page, it...
5
by: Finn Stampe Mikkelsen | last post by:
Hi How can i set a focus to a textbox in my codebehind page?? I have this WebForm, that takes information from a user and 2 buttons on the form. One that takes action on the entered...
11
by: sheldonlg | last post by:
I have a problem with not seeing the current focus while in a particular screen in a my app. The focus does not show for a type=text or textarea. I have tried to reproduce this problem in a test...
5
by: Dave Rado | last post by:
Hi I have been the following code by Freefind to use on my search page: <form action="http://search.freefind.com/find.html" method="get" accept-charset="utf-8" target="_self"> <input...
6
by: buntyindia | last post by:
Hi, I have a page. There is a section 'sidebar' where bulleted text is there. Just after first bullet there is a hidden IFRAME. That go visible on clicking of that bullet text. My problem is...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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,...
0
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
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...

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.