Opened 11 years ago

Closed 6 years ago

Last modified 6 years ago

#5955 closed defect (fixed)

back button support acting really strange in IE6

Reported by: ptwobrussell Owned by: Ben Lowery
Priority: low Milestone: 1.8
Component: Core Version: 1.0
Keywords: needsreview Cc:
Blocked By: Blocking:

Description (last modified by dylan)

For the test file below, IE6 does a number of weird things:

  • You get the yellow activex banner on the top of the window before the page loads (I'm assuming that's wrong.
  • The two states that are introduced are not respected. The back/forward buttons skip from the first to the last, skipping the intermediate state.
  • I also noticed that if you, by chance, don't include the isDebug:true flag, that you get an "access denied" error. (I would have expected not error at all for that?)

FWIW, this works great on FF2.

To run the test case, be sure and remember to copy the iframe_history.html to the same directory as the file.

<html>
    <head>
         <title>Fun with Back!</title>
 
         <style type="text/css">
             @import "http://o.aolcdn.com/dojo/1.0/dojo/resources/dojo.css";
         </style>

                         
         <script 
             type="text/javascript" 
             src="http://o.aolcdn.com/dojo/1.0/dojo/dojo.xd.js"            
             djConfig="dojoIframeHistoryUrl:'iframe_history.html',isDebug:true"        
         ></script>
 
         <script type="text/javascript">

             dojo.addOnLoad(function() {
                initialState = {
                    back: function() { console.log("Back to initial state"); }
                };  
                state1 = {
                    back: function() { console.log("Back to state 1"); },
                    forward: function() { console.log("Forward to state 1"); },
                    changeUrl : true // could also be an id like "state1"
                };  
                state2 = {
                    back: function() { console.log("Back to state 2"); },
                    forward: function() { console.log("Forward to state 2"); },
                    changeUrl : true // could also be an id like "state2"
                };  

                //set the initial state and move forward two steps in history
                dojo.back.setInitialState(initialState);
                dojo.back.addToHistory(state1);
                dojo.back.addToHistory(state2);
            });
         </script>
     <head>
        <body>
            <script type="text/javascript" src="http://o.aolcdn.com/dojo/1.0/dojo/back.js"></script>
            <script type="text/javascript">dojo.back.init();</script>

            Press the back button and have a look at the console.
        </body>     
 </html>

Change History (7)

comment:1 Changed 11 years ago by dylan

Milestone: 1.1
Owner: changed from anonymous to Ben Lowery

comment:2 Changed 11 years ago by bill

Milestone: 1.11.2

Move all milestone 1.1 tickets to 1.2, except for reopened tickets and tickets opened after 1.1RC1 was released.

comment:3 Changed 11 years ago by dylan

Description: modified (diff)

Moving undo/back bugs to future until Ben or someone else has time to tackle them.

comment:4 Changed 11 years ago by dylan

Milestone: 1.2future

comment:5 Changed 7 years ago by ben hockey

Keywords: needsreview added
Priority: highlow

we should probably close this ticket - it seems its never been looked at in 4 years and we're likely to drop ie6 support before it every gets fixed.

comment:6 Changed 6 years ago by dylan

Resolution: fixed
Status: newclosed

This has been replaced with dojo/hash and dojo/router. Closing as fixed.

comment:7 Changed 6 years ago by bill

Milestone: future1.8
Note: See TracTickets for help on using tickets.