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

IE/Firefox difference: [field name] has no properties

35
Experts,

My javascript application worked well until I upgraded. I use IE 6.0.29 with SP2 installed. My Firefox browser is 2.0.0.4. Prior to upgrade all worked well. Now my application works in IE but Firefox gives me error messages that read: [field name] has no properties.

The strange thing is that the screens in Firefox do transfer data between them as they are intended to do, but the windows just don't close when the window close scripts are activated. They also issue the no properties error message.

I read FAQs for explanation of the no properties error message. All I found were cases that showed code and someone suggested code changes and the result was the error message went away.

I did not find an explanation of what the no properties message means. Can anyone explain what it is intending to tell me?

Thanks.

Tom
Jun 27 '07 #1
7 2825
epots9
1,351 Expert 1GB
can we see the part of your code that its complaining about?
Jun 27 '07 #2
trbjr
35
OK. This script is in the second window that is sending info to the first window:

[start code:]
// function passes responses to parent; then closes this window
function doClo[seWindow() {
if (errflag == 'Y') {
alert("Please correct indicated error.");
}
// window.opener.document.apptform.hid.value = "1"; // used when debugging
else {
window.opener.document.apptform.pvt.value = visatype;
window.opener.document.apptform.pcp.value = currentposition;
window.opener.document.apptform.cpd.value = cpdescription;
window.close();
}
}
[end code]

The statement indicated in all the error messages for this window is the first one: window.opener.document.apptform.pvt.value = visatype;

I know that data is passed from this statement to the parent window because of alerts and displays. Data is passed for all three window.opener statements. But the window does not close in Firefox and it does close in IE.
Jun 27 '07 #3
mrhoo
428 256MB
Usually when a 'name' or 'id' attribute works in IE but does not return a reference to a document element in other browsers, at some point in your code you referenced an element in a way that uses IE's document.all shortcut, or you have asked for a name that was set as an id, or the reverse.
Jun 27 '07 #4
trbjr
35
mrhoo said: "...at some point in your code you referenced an element in a way that uses IE's document.all shortcut, or you have asked for a name that was set as an id, or the reverse."

a) what does it mean to set a name as an id or the reverse? I have not heard of that before.

b) where can I learn about ID's document.all shortcut?

Thanks for these suggested sources of my problem.

Tom
Jun 27 '07 #5
acoder
16,027 Expert Mod 8TB
mrhoo said: "...at some point in your code you referenced an element in a way that uses IE's document.all shortcut, or you have asked for a name that was set as an id, or the reverse."

a) what does it mean to set a name as an id or the reverse? I have not heard of that before.
In other words, you may have set an id for an element, e.g.
[HTML]<div id="test"></div>[/HTML] but you're trying to access it as a name, or vice versa, i.e. you've only set a name and you're trying to access the element by its id.
b) where can I learn about ID's document.all shortcut?
You don't want to really learn about that. What you should be using instead is document.getElementById - see this.
Jun 28 '07 #6
trbjr
35
In other words, you may have set an id for an element, e.g.
[HTML]<div id="test"></div>[/HTML] but you're trying to access it as a name, or vice versa, i.e. you've only set a name and you're trying to access the element by its id.

You don't want to really learn about that. What you should be using instead is document.getElementById - see this.
Thanks, ACODER. I appreciate your insightful reply and also directing me to the W3 site! That should fix this problem.
Jul 12 '07 #7
acoder
16,027 Expert Mod 8TB
Thanks, ACODER. I appreciate your insightful reply and also directing me to the W3 site! That should fix this problem.
No problem, you're welcome.
Jul 13 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Paul T. Rong | last post by:
Do "" and Null both mean nothing?¡¡ If I don't type anything in text box, the its value is Null£¿¡¡Or it is ¡°¡±£¿ I don¡¯ think they are the same, but I don¡¯t know their difference. Thanks.
18
by: Dixie | last post by:
Can I set the Format property in a date/time field in code? Can I set the Input Mask in a date/time field in code? Can I set the Format of a Yes/No field to Checkbox in code? I am working on...
6
by: Mark Olbert | last post by:
The doPostBack javascript functioning is not submitting the page when called by linkbuttons (or an autopostback checkbox, for that matter). I'm aware of a problem with Netscape browsers and the...
7
by: Coder | last post by:
Hi I have the following code in java script, it is not giving proper output in FIREFOX but running fine in IE... can anybody help me out to make this run in FIREFOX . <script...
5
by: Steve JORDI | last post by:
Hi, I have a strange behavior when using IExplorer over FireFox. There is an html form that asks for the name of a city and has a dedicated field for that with a submit button next to it. In...
17
by: The Frog | last post by:
Hello everyone, I am working on an application that can build database objects in MS Access from text files. I suppose you could call it a backup and restore type routine. Accessing the...
9
by: =?Utf-8?B?Sm9obiBCYWlsZXk=?= | last post by:
I have a ASP .Net page that allows moving around items on the page through javascript. This page works fine in IE. In FireFox however, I have found that if the page is using XHTML 1.0...
7
by: mike57 | last post by:
The minimal AJAX script below works in Firefox, but not in IE, Opera, or Chrome. I could use some suggestions or referrals to resources that will help me get the script working in other browsers. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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
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...

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.