First time here? Check out the FAQ!
2

Problem posting answer in IE?

Hello.

Just reproduced in askbot the problem I have in my local environment.

When clicking on post your answer button using IE9, I am being redirected to a page that doesn't exist. However, my answer is posted.

This is what I am getting:

image description

and this is my exact version of IE:

image description

I don't have the same problem using Chrome or Mozilla. Anyone else having the same problem?

alexandros.z's avatar
596
alexandros.z
asked 2012-06-27 13:56:18 -0600
Evgeny's avatar
13.2k
Evgeny
updated 2012-06-29 00:11:51 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

If you are still having a problem, check around this line of code

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
      }
    }

and comment out the window.location line. what it's doing is trying to force history into IE when it really doesn't need to.

Also, if your code is a little different look for the askbot['urls']['questions'] and it should be around there.

cwsterling's avatar
1
cwsterling
answered 2012-09-13 22:14:38 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments