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

frame hierarchy question...

Mel
i have the following code that does not work:

parent.frames["B"].document.forms["CMND"].elements.["id"].disabled=true;

i have 3 iframes in my main T (top), M (middle) and B (bottom)

in the bottom, i have a form (CMND) with an entry field (id) that i would
like to enable disable at will.

i am executing above script from inside "B". why does that not work ?

thanks for your help
Jul 23 '05 #1
2 1142
Mel wrote:
i have the following code that does not work:

parent.frames["B"].document.forms["CMND"].elements.["id"].disabled=true;

i have 3 iframes in my main T (top), M (middle) and B (bottom)

in the bottom, i have a form (CMND) with an entry field (id) that i would
like to enable disable at will.

i am executing above script from inside "B". why does that not work ?


Two things:
"id" is a reserved word, I would use something else ("idee"?).
Your reference is faulty.

parent.frames["B"].document.forms["CMND"].elements["idee"].disabled=true

Note no dot between elements and ["idee"]

Mick
Jul 23 '05 #2
Mick White wrote:
Mel wrote:
i have the following code that does not work:
parent.frames["B"].document.forms["CMND"].elements.["id"].disabled=true;

i have 3 iframes in my main T (top), M (middle) and B (bottom)

in the bottom, i have a form (CMND) with an entry field (id) that i
would like to enable disable at will.

i am executing above script from inside "B". why does that not work ?

Oops, I just noticed, in this case the form "CMND" is in the same frame
as the javascript assignment, there is no need to traverse the frame
heirarchy :
document.forms["CMND"].elements["idee"].disabled=true;

Mick


Two things:
"id" is a reserved word, I would use something else ("idee"?).
Your reference is faulty.

parent.frames["B"].document.forms["CMND"].elements["idee"].disabled=true

Note no dot between elements and ["idee"]

Mick

Jul 23 '05 #3

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

Similar topics

2
by: Java_Forum | last post by:
hi, here is my main html file INDEX.JSP ------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <META name="GENERATOR" content="IBM WebSphere Studio">...
3
by: exolon | last post by:
Yes is it possible to display a layer above an other frame than the one the layer come from ?!? thanks ;)
1
by: baltimore | last post by:
Hi, I look for a script allowing to display a page in a frame as from a link in a pop up (and close it in the same time The name of my frame is "body" In the pop up i try this function in the...
5
by: Frame | last post by:
I'm looking for tutorials or articles considering HTML Frames and how to handle them with Javascript. E.g. samples how Frames can exchange information, can a Frame instruct other Frame to update...
8
by: moondaddy | last post by:
Are frame pages really taboo in asp.net and if so, why and what's the down side of using them? I'm trying to use user controls instead, but it seems that a lot of things were a lot easier with...
18
by: robert | last post by:
Using global variables in Python often raises chaos. Other languages use a clear prefix for globals. * you forget to declare a global * or you declare a global too much or in conflict * you...
11
by: Rob | last post by:
I know, I know, don't use frames. Well, I'm stuck with these frames and I'm trying to add functionality without a complete redsign. You can look at this as a nostalgic journey. Anyway, I've got...
1
by: nickkaplan | last post by:
I have two frames, the side frame is A and the inside main frame is B. I want to display the URL of frame B in frame A. Is this possible? Someone suggested looking into innerhtml but I haven't...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.