ruliang / reallysimplehistory

Automatically exported from code.google.com/p/reallysimplehistory
Other
0 stars 0 forks source link

FireFox this.listener is null #95

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello, im working with this:

<script type="text/javascript" src="js/json2007.js"></script>
<script type="text/javascript" src="js/rsh.js"></script>
<script type="text/javascript">
  window.dhtmlHistory.create();
  var yourListener = function(newLocation, historyData) {
    //do something;
    alert(historyData); 
  }
  window.onload = function() {
    dhtmlHistory.initialize();
    dhtmlHistory.addListener(yourListener);
  };
</script>

In IE all works fine, with Friefox (3.6.10) i get the following error:

Fehler: this.listener is null
Quelldatei: http://myURL/js/rsh.js
Zeile: 399

ROW 399 = this.listener.call(null, newHash,historyData);

Please Help! Thanks

Original issue reported on code.google.com by t.zei...@gmail.com on 8 Feb 2011 at 1:31