Ask Your Question
2

Problem posting answer in IE?

asked 2012-06-27 13:56:18 -0500

alexandros.z gravatar image

updated 2012-06-29 00:11:51 -0500

Evgeny gravatar image

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-09-13 22:14:38 -0500

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-06-27 13:56:18 -0500

Seen: 128 times

Last updated: Sep 13 '12