style513 / reallysimplehistory

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

IE7 Issue #33

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This doesn't seem to work in IE7. But everything is fine in Firefox 2.0

Looking at the navigation bar, the IE7 does appear to add events to the 
history. The end of the URL will change from "index.asp#test1" 
to "index.asp#test2" to "index.asp#test3", etc. But when I click the back 
button, nothing happens. The content of the page that had changed doesn't 
revert back, and the URL in the navigation bar remains the same.

Also, even though no changes appear to take place on the page while I 
travel backward through the history, the back functionality will return 
once I hit the pages that I had been navigating before the one using RSH. 
So, if I clicked on four links in the RSH page, back functionality will 
return after I have clicked on the back button four times. I hope that 
makes sense.

I'm using the latest version of the product (0.6) on Windows XP, and have 
also tested on Windows Server 2003 with the same results. As previously 
stated, everything works fine in Firefox 2.0. It's just IE7 that's having 
the problem.

I'd also like to mention that the issue is not related to my own code, 
because it also happens with the "rshTestPage.html" file included in the 
download. When I open the file and click on the "add history" link 
mulitple times, the Log Window repeatedly indicates that a history event 
has been added. But the back button won't go anywhere.

Original issue reported on code.google.com by michaelp...@gmail.com on 28 Nov 2007 at 3:01

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I've confirmed the same behavior on my system and code.

Original comment by npave...@gmail.com on 11 Dec 2007 at 10:51

GoogleCodeExporter commented 8 years ago
Can I assume that you both are using native IE7 installs rather than IE7 
standalone?

Original comment by bdpathfi...@gmail.com on 11 Dec 2007 at 11:54

GoogleCodeExporter commented 8 years ago
My Windows XP system is brand new, and came with IE7. My Windows Server 2003 
system 
is several years old, and I manually installed IE7 last year.

Original comment by michaelp...@gmail.com on 12 Dec 2007 at 12:33

GoogleCodeExporter commented 8 years ago
Just wanted to chirp in here - I don't see this (lack of) behaviour on my Vista 
IE7.

Original comment by unfocu...@gmail.com on 17 Dec 2007 at 10:35

GoogleCodeExporter commented 8 years ago
same issue in IE6.  turn debugging on... if your site is at all similar to mine
you'll see the previously "hidden" iframe, I believe the changes you expect to 
see
will be shown in there even though it's not showing it on the rest of the page.

Original comment by mrcoffee...@gmail.com on 8 Jan 2008 at 11:33

GoogleCodeExporter commented 8 years ago
I noticed the last comment from the author is from Dec 11, 07. I'm another 
active
user of the script and if I can help I will. I've tried 0.6 and the latest svn
read-only. I'm using it on http://beta.newsx.org.

Original comment by sho...@gmail.com on 17 Jan 2008 at 1:59

GoogleCodeExporter commented 8 years ago
I ran into this issue as well.

The problem seems to occur when RSH is in a directory other than the one where 
your
accessed page is located. This is because RSH assumes that it is located in the 
same
directory that uses it. Therefore, the iframe that is created for IE is 
referenced as
src="blank.html... And when it's not there, it can't be loaded to do all of its 
magic.

To fix this, I added a variable that contains the path to my RSH directory and 
then
referenced that variable wherever blank.html was called.

Original comment by joe.lencioni on 24 Jan 2008 at 4:30

GoogleCodeExporter commented 8 years ago
Joe: My RSH installation is referenced with /js/ReallySimpleHistory/rsh.js, but 
I did
edit the file to reference /blank.html instead of just "blank.html". I still 
see the
problem on IE unfortunately.

Original comment by sho...@gmail.com on 25 Jan 2008 at 4:22

GoogleCodeExporter commented 8 years ago
Shovas: Is blank.html in the same directory as RSH?

If so, you should reference it as "/js/ReallySimpleHistory/blank.html" instead 
of
"/blank.html"

If not, then I'm not sure what's wrong.

Original comment by joe.lencioni on 25 Jan 2008 at 12:39

GoogleCodeExporter commented 8 years ago
I use CodeIgniter Framework and have the same problem. The resolution i take is 
using
another variable:

add this line in the first line

var jsPath = "/jibunshi/CI/js/";

change line 233 into
                /*Change the hidden iframe's location if on IE*/
                if (that.isIE) {
                    that.iframe.src = jsPath + "blank.html?" + newLocation;
                }
line 332 into
    /*Private: Create IE-specific DOM nodes and overrides*/
    createIE: function(initialHash) {
        /*write out a hidden iframe for IE and set the amount of time to wait between add()
requests*/
        this.waitTime = 400;/*IE needs longer between history updates*/
        var styles = (historyStorage.debugMode
            ? 'width: 800px;height:80px;border:1px solid black;'
            : historyStorage.hideStyles
        );
        var iframeID = "rshHistoryFrame";
        var iframeHTML = '<iframe frameborder="0" id="' + iframeID + '" style="' + styles +
'" src="' + jsPath + 'blank.html?' + initialHash + '"></iframe>';
        document.write(iframeHTML);
        this.iframe = document.getElementById(iframeID);
    },
line 434 into
        if (this.isIE && this.getIframeHash() != hash) {
            this.iframe.src = jsPath + "blank.html?" + hash;
        }
        else if (this.isIE) {
            /*the iframe is unchanged*/
            return;
        }

Wallaa.. That should do the magic ^^
Hope it's help

Original comment by rick...@gmail.com on 31 Jan 2008 at 3:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
My config is : Windows server 2003 + IE7 updated from IE6

I got the same problem (working on FF & not on IE7). I try to change the path of
blank.html as suggested but it's still not working.

It's like the listener attached to the event of the browser history buttons is 
not
executed when I click on those buttons.
when I put a : 
       alert("boo");
in the listener, the popup appears in FF not in IE7

Hope it can help.

Original comment by olivier....@gmail.com on 21 Apr 2008 at 9:01

GoogleCodeExporter commented 8 years ago
Its working for me in FF but not in IE (both 6 & 7).
In FF, in the log window i see
"dhtmlHistory listener created dhtmlHistory initialized"

But the same is not seen in IE. Log window is blank when the page is first 
loaded.
I belive there is some problem with window.dhtmlHistory.create, 
dhtmlHistory.initialize and dhtmlHistory.addListener.

Can anybody help me on this ?

Thanks.

Original comment by amit...@gmail.com on 28 May 2008 at 1:39

GoogleCodeExporter commented 8 years ago
Same here with me. Fine with FF 3, does not work with IE7. The listener was not
called upon back button. 

Original comment by yusdi.sa...@gmail.com on 16 Jul 2008 at 7:49

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
RE: #20: Can anyone explain to me what's going on with NewsX.org? History
functionality on IE is broken, and I've done the blank.html hack.

Original comment by sho...@gmail.com on 1 Aug 2008 at 1:20

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
#23: Thanks for looking into it. The IE6 ajax problems are one thing, but I
definitely do have weird behaviour for RSH on browsers that are currently 
working.
You can see my other comments in other threads.

Original comment by sho...@gmail.com on 1 Aug 2008 at 1:33

GoogleCodeExporter commented 8 years ago
#23: I've corrected the IE6 ajax issues. If somebody thinks the Back/Forward 
buttons
should be working on IE, I'd be very grateful for a review. I'm using the 
latest svn
of rsh.

Original comment by sho...@gmail.com on 2 Aug 2008 at 3:13

GoogleCodeExporter commented 8 years ago
Hi Shovas,
I have just fixed my own site and I think I know what is wrong with yours. We 
seems
to keep the old version of blank.html. I just realized that the kind people at 
RSH
have added few things inside blank.html. What happened with me is that I 
migrated
from a very old version of RSH which literally had a blank 'blank.html' and when
upgrading to RSH0.6 FINAL did not bother to overwrite my old blank.html. Upon
upgrading this file the back button seems to work just fine. I went to your 
site as
well and on checking the blank.html, I noticed that it was the same old blank 
version
as mine. Change this file and let me know if this fixes your problem.

Original comment by yusdi.sa...@gmail.com on 2 Aug 2008 at 5:40

GoogleCodeExporter commented 8 years ago
#27: You gotta be kidding...let me see...

Original comment by sho...@gmail.com on 2 Aug 2008 at 5:45

GoogleCodeExporter commented 8 years ago
#27: Wow, you were right. That was it. Keeping that name "blank".html...argh.

Thanks for looking at it, much appreciated.

FF, IE6, IE7, MZ17, SM11 now working.

OP95, SF31, KQ35 are a little wonky. Back and Forth change news categories on 
the
right but news headlines in the middle don't update. I guess that's something 
in my
js logic.

Original comment by sho...@gmail.com on 2 Aug 2008 at 5:56

GoogleCodeExporter commented 8 years ago
(official tone) ..I now declare this issue fixed...

Original comment by yusdi.sa...@gmail.com on 2 Aug 2008 at 6:02

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I am working on implementing an ajax browser history module and am considering 
using
RSH. I was looking at newsx.org with FF3 and IE7. In FF3 all works as expected,
however in IE7 the center column (article headers) doesn't update when clicking 
on
the back button, however the right-most column does. Is this IEs fault or an 
issue in
the current version of RSH? Also, when I clicked all the way back to the 
beginning of
the history, rather than "#TopStories" being the end, it went back one further 
to
"#", and the right column just spun waiting for content.
I fully understand solutions to every issue haven't matured yet, as it's still
essentially a workaround for native functionality missing in the browser, but 
are
there any reliable (cross-browser) fixes for the existing "holes" in the 
available
solutions?

TIA.

Original comment by laker.ne...@gmail.com on 24 Sep 2008 at 2:26

GoogleCodeExporter commented 8 years ago
I've made some modifications and now working with IE8/7.

i'm using version 0.8:

IE8 seems to work without IFRAME:
        } else if (typeof document.all !== "undefined") {
            this.isIE = true;
+           if (UA.indexOf("msie 8.0") != -1)
+               this.isIE = false;          
            this.isSupported = true;

IE7 not update URL for parent window:
    iframeLoaded: function(newLocation) {
...
        }
        /*Keep the browser location bar in sync with the iframe hash*/
-       window.location.hash = hash; 
+       window.parent.location.hash = hash; 
...

Now everithing is working for me, hope this help someone.

Original comment by milhomem...@gmail.com on 23 Dec 2009 at 7:32

GoogleCodeExporter commented 8 years ago
Hi I have just started using rsh. I have tried everything i.e. I place my 
blank.html
in the same place as my invoking jsp file and I also tried to change the path of
blank.html. But still its not working for me in IE7. 
Please help

Original comment by uttamaoj...@gmail.com on 10 May 2010 at 5:27

GoogleCodeExporter commented 8 years ago
#33
thanks, that solved it for me =D

Original comment by javier.r...@gmail.com on 3 Apr 2012 at 7:49