back button support acting really strange in IE6
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)
Milestone: |
→ 1.1
|
Owner: |
changed from anonymous to Ben Lowery
|
Description: |
modified (diff)
|
Keywords: |
needsreview added
|
Priority: |
high →
low
|
Resolution: |
→ fixed
|
Status: |
new →
closed
|
Move all milestone 1.1 tickets to 1.2, except for reopened tickets and tickets opened after 1.1RC1 was released.