/    Sign up×
Community /Pin to ProfileBookmark

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[/url]

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 ?

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @Feodorov spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...