PDA

View Full Version : [UNKNOWN][3.0+] IE8 Ext.History loop prev/current page



user_ss
22 Sep 2009, 6:34 AM
Ext version tested:

Ext 3.0+


Adapter used:

ext


Browser versions tested against:

IE8


Operating System:

WinXP Pro


Description:

History loop prev/current page in IE8


Test Case:



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="http://extjs.com/deploy/dev/resources/css/ext-all.css" />

<script type="text/javascript" src="http://extjs.com/deploy/dev/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="http://extjs.com/deploy/dev/ext-all-debug.js"></script>

<script type="text/javascript">
var a = 1;
Ext.onReady(function(){
Ext.History.init();

new Ext.Button({
text: 'add history'
,handler: function(){
Ext.History.add(a++);
}
}).render('test_btn');
});
</script>
</head>

<body>
<form id="history-form" class="x-hidden"><input type="hidden" id="x-history-field" /><iframe id="x-history-frame"></iframe></form>
<div id="test_btn"></div>
</body>

</html>



Steps to reproduce the problem:

just press "add history" couple times then try go "Back", it will loop on prev/current


The result that was expected:

follow history


The result that occurs instead:

loop on prev/current


Debugging already done:



Possible fix:

my solution im using now is:


ext-all-debug.js: (line about 43421) in startUp function
replace
if (Ext.isIE)
by
if (Ext.isIE && !Ext.isIE8)



ext-all-debug.js: (line about 43472) in init function
replace
if (Ext.isIE)
by
if (Ext.isIE && !Ext.isIE8)



ext-all-debug.js: (line about 43503) in add function
replace
if (Ext.isIE)
by
if (Ext.isIE && !Ext.isIE8)

mjlecomte
27 Sep 2009, 3:34 AM
See this thread for alternate solution:
http://www.extjs.com/forum/showthread.php?p=391111#post391111