Comments "see more" doesn't show up in explorer
 

Hello, I've had lots of comments on a single question but on Internet Explorer version 8 (haven't checked 9) the show/more comments doesn't appear.

There is a javascript error in the this code:

 $(document).ready(function(){
        if (Modernizr.history) {
          // history management works!
        } else {
          // no history support :(
          //hash = unescape(window.location.hash).replace('#','').split("?")[0]
          hash = History.unescapeHash(window.location.hash).replace('#','').split("?")[0]
          if (hash.substring(0,11)==askbot['urls']['questions']){
            url = hash
          }else{
            url = askbot['urls']['questions']+hash
          }
          if (hash !== ''){
              window.location = 'http://'+window.location.host+url
          }
        }

        // focus input on the search bar endcomment

            $('#keywords').focus();

        animateHashes();
    })

It looks like askbot['urls']['questions'] isn't defined anywhere. Anyway, the problem is a little sporadic in Internet explorer. I'm not entirely sure of the real cause, and if that javascript error had anything to do with it.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Jtrain's avatar
293
Jtrain
asked 12 years ago
Evgeny's avatar
13.2k
Evgeny
updated 12 years ago

Comments

see more comments