Women in Technology

Hear us Roar



Article:
  AJAX: How to Handle Bookmarks and Back Buttons
Subject:   Great Lib !
Date:   2006-11-14 01:45:53
From:   jWiesmann
Hi @ all,


this lib is amazing easy to use. But i figured out a bug using it with IE 6.0. It seems not to be a bug of this lib, but of IE.
If i used to import the lib not directly before initializing, there always every request will be destroyed after calling it via ajax.
I do not know why exactly, but it seems to be because of the iframe.
Again:
So it works great:

<script type="text/javascript" src="javascript/dhtmlHistory.js"></script>
<script type="text/javascript">


dhtmlHistory.initialize();
dhtmlHistory.addListener(historyChange);
function historyChange(newLocation, historyData) {
....}


but not if i got some content between the initializing and the import of that script, like that:

<script type="text/javascript" src="javascript/dhtmlHistory.js"></script>
</head>
... ANY CONTENT
<script type="text/javascript">


dhtmlHistory.initialize();
dhtmlHistory.addListener(historyChange);

it will not work at all. (Only IE, fireFox works (as expected) great)
...
however .. i really like that lib :) if someone can explain that phenomenon to me, it would be great ..
The content between that stuff is nothing special..just some JSTL scripts ..
Greets jWiesmann