473,698 Members | 2,304 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form has no properties in Netscape 7

I have an application that uses HTML, JavaScript, and ColdFusion 4.5. It
was originally written for NN 4.75, and I am updating it to work in the newer
browser. The application consists of a number of frames (some embedded within
each other), and for this particular function, I need to pass data between forms
on 2 different frames.
I updated all references to forms to use recommended syntax, i.e.
document.forms. formname, but I am still getting error that the form has no
properties. I added debugging code to view forms associated with the document,
and it shows that there are 0 forms, so somehow the system does not recognize
the form when I try to reference it from the other frame.
Does anybody have any other recommendations on how to deal with the no properties
error or what other causes for this might be??

FYI, here is some of my debugging code to show how I try to reference form:
var numForms = top.DataFrame.P lotBottomFrame. document.forms. length;
alert("Number of forms in PlotBottomFrame is " + numForms);
for (var i=0; i<numForms; i++)
{
alert("In loop - Number of forms in PlotBottomFrame is " + numForms);
alert("Form is " + top.DataFrame.P lotBottomFrame. document.forms[i].name);
}
Jul 20 '05 #1
5 1563
In article <b1************ **************@ posting.google. com>, te*****@ucia.go v
(Terri I.) writes:
FYI, here is some of my debugging code to show how I try to reference form:
var numForms = top.DataFrame.P lotBottomFrame. document.forms. length;
alert("Numbe r of forms in PlotBottomFrame is " + numForms);
for (var i=0; i<numForms; i++)
{
alert("In loop - Number of forms in PlotBottomFrame is " + numForms);
alert("Form is " + top.DataFrame.P lotBottomFrame. document.forms[i].name);
}


parent.DataFram e
or:
parent.frames['DataFrame']....
--
Randy
Jul 20 '05 #2
On 8 Jan 2004 13:27:44 -0800, Terri I. <te*****@ucia.g ov> wrote:

<snip>
I updated all references to forms to use recommended syntax, i.e.
document.forms. formname, but I am still getting error that the form has
no
properties. I added debugging code to view forms associated with the
document,
and it shows that there are 0 forms, so somehow the system does not
recognize
the form when I try to reference it from the other frame.
Does anybody have any other recommendations on how to deal with the no
properties
error or what other causes for this might be??

<snip>

Try applying the same syntax to frame accesses so:

top.DataFrame.P lotBottomFrame. document.forms. length

becomes:

top.frames['DataFrame'].frames['PlotBottomFram e'].document.forms .length

or, more reasonably:

var bottomFrame = top.frames['DataFrame'].frames['PlotBottomFram e'];
var numForms = bottomFrame.for ms.length;
...

Mike

--
Michael Winter
M.******@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #3
I have tried suggestions from both posters, with no success.
The exact same code works fine in Netscape 4.75. It's like Netscape 7
just doesn't recognize the form buried within the embedded frames.
Does anybody else have any other suggestions??

Michael Winter <M.******@bluey onder.co.invali d> wrote in message news:<op******* *******@news-text.blueyonder .co.uk>...
On 8 Jan 2004 13:27:44 -0800, Terri I. <te*****@ucia.g ov> wrote:

<snip>
I updated all references to forms to use recommended syntax, i.e.
document.forms. formname, but I am still getting error that the form has
no
properties. I added debugging code to view forms associated with the
document,
and it shows that there are 0 forms, so somehow the system does not
recognize
the form when I try to reference it from the other frame.
Does anybody have any other recommendations on how to deal with the no
properties
error or what other causes for this might be??

<snip>

Try applying the same syntax to frame accesses so:

top.DataFrame.P lotBottomFrame. document.forms. length

becomes:

top.frames['DataFrame'].frames['PlotBottomFram e'].document.forms .length

or, more reasonably:

var bottomFrame = top.frames['DataFrame'].frames['PlotBottomFram e'];
var numForms = bottomFrame.for ms.length;
...

Mike

Jul 20 '05 #4
Lee
Terri I. said:

I have tried suggestions from both posters, with no success.
The exact same code works fine in Netscape 4.75. It's like Netscape 7
just doesn't recognize the form buried within the embedded frames.
Does anybody else have any other suggestions?


In the following example, the left frame accesses a form element's
value from the right frame as:

top.frames['right'].document.forms['myform'].elements['message'].value

Where "right", "myform" and "message" are all NAME attributes.
It works in Netscape 4.75 and 7.1.

I've defined the frame contents in script in order to be able to post
it as a single file. That's not significant to your problem.

<html>
<head>
<script type="text/javascript">
leftFrameHTML=" <html><body><fo rm><input type='button' onclick=\""
+"alert(top.fra mes['right'].document.forms['myform']."
+"elements['message'].value)\" value='test'></form>"
+"</body></html>";
rightFrameHTML= "<html><body><f orm name='myform'>< input name='message'"
+" value='Hello, world!'></form></body></html>";
</script>
</head>
<frameset cols="50%,*">
<frame name="left" src="javascript :top.leftFrameH TML">
<frame name="right" src="javascript :top.rightFrame HTML">
</frameset>
</html>

Jul 20 '05 #5
Terri I. wrote:
I have tried suggestions from both posters, with no success.
The exact same code works fine in Netscape 4.75. It's like Netscape 7
just doesn't recognize the form buried within the embedded frames.
WFM.
Does anybody else have any other suggestions??
Please show the relevant snippet of your new code
[...]


and stop top posting.
PointedEars
Jul 20 '05 #6

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

Similar topics

13
40738
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div style="display:none"> can be displayed by setting the style attribute to "display:", or hidden with "display:none". This gives the illusion that the person filling out the form is switching from page to page...without the overhead of extra hits on the server,...
14
14173
by: Chris | last post by:
Heres my problem: <a href="javascript:void(document.buysell.submit())" target="_parent" onMouseOver="MM_swapImage('members','','images/membersf2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/members.gif" alt="Back to members page" name="members" width="270" height="25" border="0"></a> I get the error "document.buysell" is null or not an object, but my form name is buysell and when using the submit button, which is not
19
2988
by: Pete | last post by:
I have form/select which executes a function using onchange. No problem. However, when I validate the page with a strict HTML 4.01 doctype at http://validator.w3.org, it demands either an action or a method for the form?. If I give it an empty action <form action="" ..... it validates OK. Is this acceptable or is there a better/standards correct way? Thanks.
11
2020
by: Saqib Ali | last post by:
Please excuse me, this is a fairly involved question that will likely require you to save the file below to a file and open it in a browser. I use Mozilla 1.5, so the problem I describe below should be reproducible with that version at least. BACKGROUND: =========== When you open this page in your browser, you will see a 4 cell table. The cells contain the following items respectively:
18
2955
by: Toronto Web Designer | last post by:
I'm having trouble with the padding and margin properties. IE tends to be happier with the padding and Netscape with the margin property. So I tried this: <link href="netscape-styles.css" rel="stylesheet" type="text/css"> <style type="text/css"> @import url(ie-styles.css); </style>
4
2378
by: mscir | last post by:
I would like to generate a page of links including some of the pdf properties (title, author, version, etc.) for a folder full of pdf's. Is this possible from Javascript? TIA, Mike
9
12424
by: kj | last post by:
Is there any way to programmatically discover and inspect *all* the properties of an object, even those that are not enumerable through a for/in loop? Thanks! kj -- NOTE: In my address everything before the period is backwards.
4
2203
mbs402
by: mbs402 | last post by:
Hello, This one has several alerts that show where and what... http://www.mac-specialist.com/r/browser_frames_problem_with_debug.html This one is identical without the debugging code... http://www.mac-specialist.com/r/browser_frames_problem_no_debug.html
9
2513
by: dhtml | last post by:
I have written an article "Unsafe Names for HTML Form Controls". <URL: http://jibbering.com/faq/names/ > I would appreciate any reviews, technical or otherwise. Garrett -- comp.lang.javascript FAQ <URL: http://jibbering.com/faq/ >
0
8603
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
9157
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
8895
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
8861
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7725
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
6518
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
5860
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4369
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...
2
2329
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.