0

in my new project, site loads pages using ajax by reading hash tags, to do this using that small javascript code;

$(window).bind("hashchange",function(){
            var hash= window.location.hash;
            var target = hash.substring(2);
            $("#ajaxArea").empty().load(target);            
            });

but in ie7 it doesn't work.. is there any other way to handle this problem in ie7?.

thanks..

Bahadır
  • 269
  • 2
  • 3
  • 12

2 Answers2

1

Just get a plugin that adds hashchange event support to IE7, eg. http://benalman.com/projects/jquery-hashchange-plugin/

Rafael
  • 18,349
  • 5
  • 58
  • 67
0

This question looks like it's already been adequately discussed on this very site: On - window.location.hash - Change?

Community
  • 1
  • 1
Sly_cardinal
  • 12,270
  • 5
  • 49
  • 50