hallo i am developing web site using prototype. But i am having trouble to implement a history for this web site and especially for IE . So far i found this solution :
[url]http://www.prototypextensions.com/history#main=ajax-history
and i make it run on FireFox , but on IE i can’t
This is the code at my test page :
<html>
<head>
<script language=”javascript” src=”prototype.minified.js”></script>
<script language=”javascript” src=”scriptaculous.js”></script>
<script language=”javascript” src=”prototypextensions.js”></script>
<script language=”javascript” >
function ajaxHistoryRequest(url, myState)
{
new Ajax.History.Request(url, {
history : {
id : ‘example’,
state : myState,
cache : true,
onStateChange: function(state) {
// change title
History.setTitle(History.getTitle() + ‘ – Page Ajax #’ + state);
}
},
onSuccess: function(transport) {
$(‘box-example’).update(transport.responseText);
// some stuff
}
});
}
</script>
</head>
<body>
<iframe > </iframe>
<div>
<input type=”submit” value=”Execute” onclick=”ajaxHistoryRequest(‘1.html’, ‘first-test1’);” />
<input type=”submit” value=”Execute” onclick=”ajaxHistoryRequest(‘2.html’, ‘first-test2’);” />
<div id=’box-example’>
</div>
</div>
</body>
</html>
So far i found that in IE the callback for success is not called.
Can anyone provide a little help ?