Hi,
I'm looking at some old code, and am having a problem with IE having
changed how accesses an object:
pages = window.parent.f rames.item(1).d ocument.all("po sition");
This works under Win200 and 6.0.2800.1106.
But not under WinXp and 6.0.2900.2180.
Does anyone know what IE might be looking for?
Thanks,
--
J. Moreno 5 2307
J. Moreno said the following on 7/28/2006 8:30 PM:
Hi,
I'm looking at some old code, and am having a problem with IE having
changed how accesses an object:
pages = window.parent.f rames.item(1).d ocument.all("po sition");
What does item(1) refer to?
What is "position"?
This works under Win200 and 6.0.2800.1106.
But not under WinXp and 6.0.2900.2180.
Does anyone know what IE might be looking for?
Not even MS is sure what IE might be looking for about 90% of the time.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Randy Webb <Hi************ @aol.comwrote:
J. Moreno said the following on 7/28/2006 8:30 PM:
Hi,
I'm looking at some old code, and am having a problem with IE having
changed how accesses an object:
pages = window.parent.f rames.item(1).d ocument.all("po sition");
What does item(1) refer to?
An individual frame. In FF window.parent.f rame[1] works.
What is "position"?
An ID (yeah, I know, bad idea to have more than one element with the same
ID, I'll fix that next).
This works under Win200 and 6.0.2800.1106.
But not under WinXp and 6.0.2900.2180.
Does anyone know what IE might be looking for?
Not even MS is sure what IE might be looking for about 90% of the time.
Heh. But I need to find out what it wants this time...
--
J. Moreno
J. Moreno wrote:
pages = window.parent.f rames.item(1).d ocument.all("po sition");
This works under Win200 and 6.0.2800.1106.
But not under WinXp and 6.0.2900.2180.
Didja already try debugging to see what fails? Like an alert and
removing the ending object each time until it works?
alert(window.pa rent.frames) etc.
What error did you get, btw? No permission or ?? W2K and XP seem
to sometimes have different security models.
Also, personally, I'd name the frames so you don't have to do the
frames.item(1) thingie. Ooops, never mind, I forgot that you said it
was old code.
Luck! - Kev
J. Moreno said the following on 7/31/2006 12:08 PM:
Randy Webb <Hi************ @aol.comwrote:
>J. Moreno said the following on 7/28/2006 8:30 PM:
>>Hi,
I'm looking at some old code, and am having a problem with IE having changed how accesses an object:
pages = window.parent.f rames.item(1).d ocument.all("po sition");
What does item(1) refer to?
An individual frame. In FF window.parent.f rame[1] works.
IE only code, gotta love it.
>What is "position"?
An ID (yeah, I know, bad idea to have more than one element with the same
ID, I'll fix that next).
It's not just a "bad idea" as it is invalid HTML code and when presented
with invalid HTML anything goes.
>>This works under Win200 and 6.0.2800.1106.
But not under WinXp and 6.0.2900.2180.
Does anyone know what IE might be looking for?
Not even MS is sure what IE might be looking for about 90% of the time.
Heh. But I need to find out what it wants this time...
Start with validating the HTML to make sure it isn't a multiple ID issue
as IE may make a collection of same-ID'ed elements (I don't remember to
be honest). Then, start debugging with alerts and find out what is
causing the error.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
"Kevin Darling" <kd******@basit .comwrote:
J. Moreno wrote:
pages = window.parent.f rames.item(1).d ocument.all("po sition");
This works under Win200 and 6.0.2800.1106.
But not under WinXp and 6.0.2900.2180.
Didja already try debugging to see what fails? Like an alert and
removing the ending object each time until it works?
alert(window.pa rent.frames) etc.
What error did you get, btw? No permission or ?? W2K and XP seem
to sometimes have different security models.
Yeah, it was a security problem -- MS's silly "Mark of the Web" wasn't on
the main page.
Also, personally, I'd name the frames so you don't have to do the
frames.item(1) thingie. Ooops, never mind, I forgot that you said it
was old code.
The frames were already named. Which means I can use
window.parent.f rames.frameName , I just checked and IE recognizes it (both
on my development machine and when working).
--
J. Moreno This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Chris New |
last post by:
G'Day All
I am having trouble dynamically assigning a value to a table's cell
from one frame to another frame.
I've created a website that is primarily viewed in a frameset
consisting of 2 frames - a navigation frame (navFrame) at the top and
a contents frame (mainFrame) on the bottom. In all instances, the
mainFrame displays a single page except in one case, where it was
necessary to use a frameset consisting of a left frame...
|
by: Gregor |
last post by:
I'm having problems accessing a global array variable from within a
function. I have something like this:
------------------------------------
var detail = new Array( 20 );
detail = "hello";
function ShowDetail( ) {
top.frames.document.clear();
top.frames.document.write("<html><body>");
|
by: Frédéric Mayot |
last post by:
Hi,
I have an HTML page like this :
--- test.html
<html>
<body>
<form>
<iframe id="frametest" name="frametest" src="iframe.html"></iframe>
<select multiple ondblclick="alert(frametest.v);"></select>
|
by: Jeremy Gollehon |
last post by:
I'm trying to help a friend out but couldn't find an answer so thought I'd
post here.
Is it possible to access the frame window at http://www.5460.net (a chinese
site)?
We're trying to get the DIV elements from its DOM.
We were trying:
alert(document.frames.document.getElementsByTagName('DIV').length);
with no luck.
Thanks for any help!
|
by: Greg |
last post by:
Javascript Folks,
I am relatively new to javascript and am working on a script where I
want to utilizes a couple of iframes and format text in them. I have
run into a problem with getting the following code to work in mozilla.
It seems to work in ie.
Eventually I will be replacing the H1 node with a table until I can get
the H1 node to show up in mozilla there is not much point.
| |
by: David Brewster |
last post by:
Hey everyone.
I am just getting into .NET (2003) now - I've been working in VB6 for some
time now, so my question may seem pretty low level for some - but bare with
me ok?
I have a form with 2 frames in it "Contents", "Main", and "Header".
Along the side frame (Contents), I have a navigation type menu. Now when one
of those buttons get pushed, it should change the page over in the main.
Here's the thing - I have no idea how to access...
|
by: k.karthikit |
last post by:
Hello all,
In some hidden variable (<input type="hidden" name="hiddenId"
value="test" /> ,i stored some value.I accessed the value "test" using
var id = document.getElementById( 'hiddenId' );
It is working fine in IE. But in Mozilla Firefox , null value is
returned.Is there any way to use hidden variables compatible to
browsers......?
|
by: Andrew Bullock |
last post by:
Hi
Can someone give me some pointers as to how to access frames from an AVI
file as quickly as possible.
If it makes any difference...
I first need to access them sequentially (forward) as quickly as
possible, but then I need to be able to access them in no particular
order. This second step does not have the requirement of speed.
|
by: thompson_38 |
last post by:
I am currently working on a C# application that uses an axWebBrowser
control which displays HTML pages. This is being done to reuse an
existing web application which resides on a client's computer. I
have created a resource .dll linking in all of the HTML, images and
JavaScript pages in the old project. Using the
res://mydll/homepage.htm, the home page loads into the web browser
control (axWebBrowser.Navigate). This page has frameset,...
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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,...
| |
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...
|
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |