Ask Your Question
2

Problem posting answer in IE?

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

alexandros.z gravatar image alexandros.z
610 12 10 30

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

Evgeny gravatar image Evgeny flag of Chile
11009 50 84 182
http://askbot.org/

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?

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

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

cwsterling gravatar image cwsterling
1

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.

link publish delete flag offensive edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow
1 follower

subscribe to rss feed

Stats

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

Seen: 73 times

Last updated: Sep 13 '12