SOLVED

How to get forms2.min.js to work in IE?

Go to solution
Robb_Barrett
Level 10

Hello, I have a page with an embedded form that's giving me problems in IE only. 

forms2problem.png

According to what I've read, IE doesn't support forEach.  So what's the work-around for this? 

Works fine in FF and Chrome, but of course IE is the browser we'll most likely have to accomodate.

Robb Barrett
1 ACCEPTED SOLUTION
Robb_Barrett
Level 10

Your hint of Edge helped me solve it.

The following code needs to be placed in the head tag and it works like a charm.

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

Robb Barrett

View solution in original post

9 REPLIES 9
Robb_Barrett
Level 10

Your hint of Edge helped me solve it.

The following code needs to be placed in the head tag and it works like a charm.

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

Robb Barrett
Anonymous
Not applicable

Hi,

We recently changed our marketo pages to ssl so that we could embed them on our secure site. Now it turns out the form do not show up at all on IE. I tried placing this code in the head tag of the template the the landing pages call on. But the forms still do not show up.

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

The forms also do not show up on the iphone 5.

any thoughts.

SanfordWhiteman
Level 10 - Community Moderator

Please post the URL of an example page.

I suspect you hard-coded plain-text (http://...) somewhere instead of using protocol-relative URLs (//...)

Jamie-Carey
Level 6

I don't know the answer to your question, but A++ on the tags.

Kenny_Elkington
Marketo Employee

Which version/compatibility mode are you seeing this on?  Do you have an example page where we could see this in action?

Robb_Barrett
Level 10

http://it.gehealthcare.com/IP_CPS_Nurture_2_2015_All-In-One-Page.html?asset=autodemo

IE11. I've tried this on v8 compatibility and it looked hideous.

The problem manifests when you submit the form. 

Robb Barrett
SanfordWhiteman
Level 10 - Community Moderator

Array#forEach was introduced in IE9.  So you must have had something that was forcing you into IE8 mode. I doubt that had to do with the form.

Kenny_Elkington
Marketo Employee

I can't seem to replicate this, though I'm trying to emulate from Edge and not IE11.  I'll try again when I have access.

Robb_Barrett
Level 10

So it works for you in IE11?

When I submit I get stuck at the code I showed above.  The URL shows the page along with a query string of all the form fields. 

You don't get that?

Robb Barrett