yhyu1220 / reallysimplehistory

Automatically exported from code.google.com/p/reallysimplehistory
Other
0 stars 0 forks source link

RSH problems with IE7 when page contains an iframe #27

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I use RSH to control the contents of an iframe in my page.  When the
history callback is called, I change the contents of the iframe using:

  iframe_obj.contentWindow.location.replace(newUrl);

where newUrl is derived from the data in the history.

If I do this, RSH does not work anymore.  The workaround I found is to
replace the iframe with a new one rather than trying to change its location.

Not a big deal since the workaround is easy, but perhaps something to keep
track of for you.

Original issue reported on code.google.com by imad.yam...@gmail.com on 12 Nov 2007 at 7:28

GoogleCodeExporter commented 8 years ago
Hmmmmm. This is a good one. Is there a specific browser where this is 
occurring, or
is it happening in a range of browsers. I'll have to play with this. Thanks for 
the
heads-up and the proposed workaround!

--Brian

Original comment by armchai...@gmail.com on 13 Nov 2007 at 5:29

GoogleCodeExporter commented 8 years ago

Original comment by bdpathfi...@gmail.com on 13 Nov 2007 at 5:35

GoogleCodeExporter commented 8 years ago
I've seen this in IE7.  It did not happen in Firefox 2.0.0.9 (Windows) nor Opera
9.24.    I did not try on IE6.

 - Imad

Original comment by imad.yam...@gmail.com on 13 Nov 2007 at 5:57

GoogleCodeExporter commented 8 years ago
RSH actually CREATES an IFRAME, I think this is the issue.  I can actually SEE 
the
contents of the IFRAME if I turn debugging on... I'm not sure it's supposed to 
do
that.  Strange thing is while I can see it, ajax will load the content 
correctly in
the IFRAME on back/forward... but not in the actual page.  With debugging off, I
can't see the IFRAME and back/forward don't work at all.

I did my tests in IE6.

Original comment by mrcoffee...@gmail.com on 8 Jan 2008 at 9:35

GoogleCodeExporter commented 8 years ago
Noticed larger issue... this script updates the SOURCE of the Iframe, not the
location.  This is... silly.  Every time you go to a new page it will load it 
TWICE.
 That's not good.  I'm trying to figure out how to code out "src" and replace with
"location".  Progress!  Back works, but goes back to the home page instead of
incrementing once at a time... my hash.. like #page.htm is being thrown as
#"page.htm" in IE.  Probably explaining why it won't go back a single page at a 
time.
 If I can locate where the script enacts the change, I'll have it fixed.

Original comment by mrcoffee...@gmail.com on 8 Jan 2008 at 10:01