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

Can't send frame to a URL a second time IN IE5...

This fails only in IE 5. It works flawlessly in IE5.5+[s], Netscape[s], Opera[s] and Mozilla[s].

I'm using javascript to navigate in my content. I can load the starting page just fine (page0.html). Any subsequent use of the below
function does nothing.

I'm testing tURL, and it contains the correct URL (page1.html), and also testing that parent.frames.moduleFrame.location.href
returns the current page's URL, which it does.

Code:

function redrawPage(){
var tURL;
if(this.modType == "lesson")
tURL = "page" + this.currentPage + ".html";
else
tURL = "moduleDisplay.html";
parent.frames.moduleFrame.location.href = tURL;
}

These pages do employ document.write to write contents.

PLEASE help!
Jul 23 '05 #1
7 1166
VK
> parent.frames.moduleFrame.location.href = tURL;

try instead:
window.top.moduleFrame.location.href=tURL
(more reliable)

Also "this" is a very fancy girl sometimes, acting rather like "that"
(meaning "hell knows what I'm pointing to"). Except referencing the parent
form from within a form element, I'd suggest always use the object name
itself (unless you are extending the "window" object and this function is a
method of your customary object, which I cannot tell from this snip).

After that it should work.
Jul 23 '05 #2
It is being used in a custom object, which is the "this", in this case. The object is used to maintain state on the client-side.

I can't go from window.top as this frameset could be nested 4-40 deep, and I will have no control over the number of levels... only
the direct relationship between the target frame and it's parent.

What could possibly cause a frame which is known to exist, and can be queried for name/id, to not allow location.href assignment
and also not throw an error?

BTW: thank you for your quick response to my original.

"VK" <sc**********@yahoo.com> wrote in message news:41***********************@news.freenet.de...
parent.frames.moduleFrame.location.href = tURL;


try instead:
window.top.moduleFrame.location.href=tURL
(more reliable)

Also "this" is a very fancy girl sometimes, acting rather like "that"
(meaning "hell knows what I'm pointing to"). Except referencing the parent
form from within a form element, I'd suggest always use the object name
itself (unless you are extending the "window" object and this function is a
method of your customary object, which I cannot tell from this snip).

After that it should work.

Jul 23 '05 #3
VK
> parent.frames.moduleFrame.location.href = tURL;

This statement is using the "Sloppy Joe's Syntacs" - maybe IE 5.0 is just
less tolerant as other browsers?

Try the conventional syntacs:
parent.frames('moduleFrame').location.href=tURL

Tell me if it helps.

Jul 23 '05 #4
On Wed, 29 Sep 2004 13:51:17 +0200, VK <sc**********@yahoo.com> wrote:

[snip]
Try the conventional syntacs:
parent.frames('moduleFrame').location.href=tURL


That isn't conventional. The frames collection is just that: a collection.
It is not a function[1]. Use square brackets:

frames['moduleFrame']

[snip]

Mike
[1] Some browsers might allow it, but it's probably just to be compatible
with IE. Square brackets should be supported by all browsers.

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #5
VK
My bad!
A Microsofted thinking eventually gets you: slow but sure :-)
Jul 23 '05 #6
Cleaned it up and it still didn't work.

Strange quirk: I notice that if I [SHIFT]+click on the link that calls the function, while it does open a page in a new window, the
ORIGINAL windows DOES advance to the correct URL.

WTH?!?!?
"VK" <sc**********@yahoo.com> wrote in message news:41***********************@news.freenet.de...
My bad!
A Microsofted thinking eventually gets you: slow but sure :-)

Jul 23 '05 #7
VK
Do you have a link to look at?

Also just for a hell of it check that all test browsers have equal security
settings.
Jul 23 '05 #8

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

Similar topics

1
by: Hennie de Nooijer | last post by:
Hi, I've the following problem. I have a webpage with some frames on it. In one frame i have two buttons "reports" and "Analyis". When Someone pushes reports, a frame must be replaced next to...
1
by: Brandon | last post by:
A newbie question for you all: Suppose you have a webpage with two frames: a main frame, and a second frame. You have several hyperlinks to other websites in the second frame. What you want is...
8
by: Veerle | last post by:
Suppose having a frameset consisting of two frames, both with dark background colors. One of the frames is a sort of menu and the other one contains the content. When someone clicks a menu item in...
1
by: arvind | last post by:
hi all, i've created the myclass instance and calles the "function second()". i want to access the text entered in 'w' through Entry widget in "function third()" i am getting the 'fuction not...
0
by: SAL | last post by:
Hello, I'm working with, C#, Framework 1.1, and Visual Studio 2003. I built a Webform that uses Frameset which has 4 frames (Header, Footer, Main, and Contents) and I set the NavigationUrl...
0
by: adubra | last post by:
Hi there, I am using a device context (DC) and a buffer to successfully draw to screen. However, when I update the DC at very high frame rate and drag the frame containing the image very quickly...
8
by: susinthaa | last post by:
Hi, I am new to javascript. This is my problem description. Actually I have 3 pages. In the first page I have 2 frames. In the first page(first) from one of the frame(first), I have a link to...
1
by: sritejv | last post by:
Hi i have trouble with the following piece of code.The sender sends a file ,a line at a time to the rx.After sending the file the sender closes the socket,therby closing the connection.But rx is not...
2
by: dmc2409 | last post by:
Well, I am more a desigber than developer. Need to solve the folloving problem. I have a page on, lets call it Firstserver. It opens Page1, Page2 and Page3 on Secondserver through a frame on the...
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
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....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.