Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Simple frame.location.href question

Reply
Thread Tools

Simple frame.location.href question

 
 
ChrisC
Guest
Posts: n/a
 
      12-11-2006
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.

 
Reply With Quote
 
 
 
 
Daz
Guest
Posts: n/a
 
      12-11-2006

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.

 
Reply With Quote
 
 
 
 
ASM
Guest
Posts: n/a
 
      12-11-2006
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
 
Reply With Quote
 
ChrisC
Guest
Posts: n/a
 
      12-11-2006

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

javascriptarent.frames["RightFrame"].location.href =
'Default.aspx?postDate=11122006'

 
Reply With Quote
 
ASM
Guest
Posts: n/a
 
      12-11-2006
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
>
> javascriptarent.frames["RightFrame"].location.href =
> 'Default.aspx?postDate=11122006'


where it is displayed ?
in the href of a link ?

try (with no ") :

javascriptarent.frames['RightFrame'].location.href =
'Default.aspx?postDate=11122006';

or :

javascriptarent.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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Plz, a simple answer to a simple question about IP addresses MeekiMoo Computer Support 0 07-28-2009 08:10 AM
Simple region code question... simple answer?? joseph.greer@gmail.com DVD Video 7 01-26-2007 09:07 PM
Simple Question - Simple Answer? Daniel Frey XML 4 01-12-2005 04:25 PM
Re: Simple Simple question!!! Kevin Spencer ASP .Net 0 06-25-2004 05:25 PM
Re: Simple Simple question!!! ashelley@inlandkwpp.com ASP .Net 0 06-25-2004 04:18 PM



Advertisments