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

Simple frame.location.href question

I have a nice simple page - navigation frame on the left, main panel on
the right -

<frameset cols = "20%, 80%">
<frame src="LeftPanel.aspx" id="leftFrame" name="leftFrame"
width="20%" height="100%" frameborder="0" scrolling="no" />
<frame src="Default.aspx" id="RightFrame" name="RightFrame"
width="80%" height="100%" frameborder="0" scrolling="no" />
</frameset>

Trouble is, when I try to redirect the frame on the right to a
differerent URL it is not updating all the time. It is typically the
same page but with a different URL parameter e.g.
Default.aspx?postdate=01012006 to Default.aspx?postdate=08012006

Im assuming its some kind of caching bug but ive tried putting nocache
directives in the page to no avail. I've reproduced this in IE 6, IE 7
and Firefox2.

Dec 11 '06 #1
4 9933
Daz

ChrisC wrote:
I have a nice simple page - navigation frame on the left, main panel on
the right -

<frameset cols = "20%, 80%">
<frame src="LeftPanel.aspx" id="leftFrame" name="leftFrame"
width="20%" height="100%" frameborder="0" scrolling="no" />
<frame src="Default.aspx" id="RightFrame" name="RightFrame"
width="80%" height="100%" frameborder="0" scrolling="no" />
</frameset>

Trouble is, when I try to redirect the frame on the right to a
differerent URL it is not updating all the time. It is typically the
same page but with a different URL parameter e.g.
Default.aspx?postdate=01012006 to Default.aspx?postdate=08012006

Im assuming its some kind of caching bug but ive tried putting nocache
directives in the page to no avail. I've reproduced this in IE 6, IE 7
and Firefox2.
Can we see a little bit more of the actual JavaScript code? It's quite
hard to spot a problem without being able to see the code.

Thanks.

Daz.

Dec 11 '06 #2
ASM
ChrisC a écrit :
I have a nice simple page - navigation frame on the left, main panel on
the right -

<frameset cols = "20%, 80%">
<frame src="LeftPanel.aspx" id="leftFrame" name="leftFrame"
width="20%" height="100%" frameborder="0" scrolling="no" />
<frame src="Default.aspx" id="RightFrame" name="RightFrame"
width="80%" height="100%" frameborder="0" scrolling="no" />
</frameset>

Trouble is, when I try to redirect the frame on the right to a
differerent URL it is not updating all the time. It is typically the
same page but with a different URL parameter e.g.
Default.aspx?postdate=01012006 to Default.aspx?postdate=08012006
Curious that works fine for me (Firefox) and would for everyone.

test :
http://stephane.moriaux.perso.wanado...s_n_variables/
with something as your links (postdate=01012006)

<a href="Default.aspx?postdate=08012006" target="RightFrame">

or

<a herf="#"
onclick="parent.RightFrame.location='Default.aspx? postdate=08012006';
reurn false;">

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Dec 11 '06 #3

ASM wrote:
ChrisC a écrit :
I have a nice simple page - navigation frame on the left, main panel on
the right -

<frameset cols = "20%, 80%">
<frame src="LeftPanel.aspx" id="leftFrame" name="leftFrame"
width="20%" height="100%" frameborder="0" scrolling="no" />
<frame src="Default.aspx" id="RightFrame" name="RightFrame"
width="80%" height="100%" frameborder="0" scrolling="no" />
</frameset>

Trouble is, when I try to redirect the frame on the right to a
differerent URL it is not updating all the time. It is typically the
same page but with a different URL parameter e.g.
Default.aspx?postdate=01012006 to Default.aspx?postdate=08012006

Curious that works fine for me (Firefox) and would for everyone.

test :
http://stephane.moriaux.perso.wanado...s_n_variables/
with something as your links (postdate=01012006)

<a href="Default.aspx?postdate=08012006" target="RightFrame">

or

<a herf="#"
onclick="parent.RightFrame.location='Default.aspx? postdate=08012006';
reurn false;">

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
The link itself is popualted in some .net code, but an example would be

javascript:parent.frames["RightFrame"].location.href =
'Default.aspx?postDate=11122006'

Dec 11 '06 #4
ASM
ChrisC a écrit :
>
The link itself is popualted in some .net code,
No importance, we have only to know what the browser will read
(resulting html code)
but an example would be

javascript:parent.frames["RightFrame"].location.href =
'Default.aspx?postDate=11122006'
where it is displayed ?
in the href of a link ?

try (with no ") :

javascript:parent.frames['RightFrame'].location.href =
'Default.aspx?postDate=11122006';

or :

javascript:parent.RightFrame.location.href =
'Default.aspx?postDate=11122006';

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Dec 11 '06 #5

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

Similar topics

3
by: Alan Clark | last post by:
Dear All I need to do something very simple with Javascript and have been looking all over the web for two days for a suitable script. I'm the kind of person who learns by seeing how it's done....
24
by: Charles Crume | last post by:
Hello; My "index.htm" page has 3 frames (content, navigation bar, and logo). I set the "SRC" of the "logo" frame to a blank gif image and then want to change it's contents after the other two...
4
by: Frances Del Rio | last post by:
sorry, but need to post entire frameset here to ask my question: <frameset rows="79,344,107"> <frame name="header" src="header.html"> <frame name="player" src="mediaselect.html"> <frameset...
4
by: DaveO | last post by:
Hi all I have done lots of VB programming, but am not familiar with JavaScript. Can anyone tell me how to do this ....? I have a JS file for a menu system called menu.js It contains the...
1
by: Sandy Bremmer | last post by:
Hello. I was looking at various javascript suggestions for frame busting. Typically what I have used in the past is this: <script language="JavaScript"> <!--// if (window != top) {...
3
by: Vongza | last post by:
<html> <head> <title>Cross Frame Reference</title> <script language="javascript"> function showThisTitle() { alert(document.title); } function showAnotherTitle() { try {...
13
by: Xah Lee | last post by:
there's this one i can't figure out. I'm trying to kick out image.google.com's top frame when it goes to my page. If you go to http://images.google.com/images?q=milk+tits click on the page...
3
by: prophet | last post by:
I know that this is going to be so simple to fix, but I have been pulling my hair out trying to see the forest through the trees...... What I want to do is change the onMouseOver so that when you...
1
by: Simon | last post by:
A very simple question that is very hard to google..(so please be so kind to answer it, if you have the answer.) How can I reach an iframe, located in another frame. Situation: frameset of three...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...
0
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...

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.