Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Problems with IE9 #3

Closed
anselmdk opened this issue Jan 26, 2012 · 4 comments
Closed

Problems with IE9 #3

anselmdk opened this issue Jan 26, 2012 · 4 comments

Comments

@anselmdk
Copy link
Contributor

We're having the problem on a live site, that sites just won't submit in IE9.
Several threads are pointing to that IE9 and reCaptcha just won't work together, and this thread suggests to force Internet Explorer in IE8 mode:
http://answers.microsoft.com/en-us/ie/forum/ie9-windows_7/ie9-is-not-capturing-recaptcha-form-fields/6479d1f0-6f67-e011-8dfc-68b599b31bf5?msgId=44883943-036d-e011-8dfc-68b599b31bf5&page=1

So, what we're doing for now, is to force all UserDefineForms pages to be rendered in IE8 mode like described below (off course that can be extended to include other page types as well). I don't think this is optimal (as many sites look much better in IE9/10 than in IE8), but this seems like a good trade-off, considering that users are at least able to submit forms.

Does anyone else experience this problem, or does anyone else have a better solution?

/*
 * Forcing the browser to render in IE8 mode for UserDefineForms
 * This is due to problems with IE9 and reCaptcha
 */
public function ForceIE8(){
    $class = $this->ClassName;
    if ($class == 'UserDefinedForm') {
        return true;
    }
}

...and adding this as first in the head tag

<% if ForceIE8 %>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" >
<% end_if %>
@chillu
Copy link
Owner

chillu commented Feb 3, 2012

Hey Anselm! I can't reproduce this, neither on the recaptcha.net demo, nor on the http://www.silverstripe.org/ForumMemberProfile/register page (on IE9 in Windows 7).

That being said, I had some problems getting pages to show at all in IE9, regardless whether they had Recaptcha or now - but I think that must be a VirtualBox problem...

We can' t have a module change a "global" setting like the UA-Compatible flag, so from a module perspective I don't think there's any action required, sorry!

@chillu chillu closed this as completed Feb 3, 2012
@anselmdk
Copy link
Contributor Author

anselmdk commented Feb 3, 2012

Hey Ingo,
both our client, as well as my agency and I had the same issue.
That's why I added it here, in case somebody else had the same problems. I understand though that we can't have a module change "global" setting, and actually it was also more thought as a reference for others having the same problem.
But maybe our setup is a one-off :)
In case anyone else is having the same issues, I think we could add it into the wiki or the code documentation as a solution. In case nobody else comments on this, let's just keep it closed!
Thanks for the link btw, I'll test it next time I'm on a Win7 machine.

@chillu
Copy link
Owner

chillu commented Feb 4, 2012

Hey Anselm, yeah its mainly about information - feel free to submit a pull request adding a sentence or two to the "known issues" section on README

@anselmdk
Copy link
Contributor Author

anselmdk commented Feb 9, 2012

Hi Ingo,
I just submitted a pull request for this.

Firesphere pushed a commit to Firesphere/silverstripe-recaptcha that referenced this issue Sep 30, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants