IE Submit Form Nothing Happens - Even With No Javascript

Posted by admin on February 26, 2013 at 12:13 pm.

I won’t bore anyone with a long rant about how terrible a browser Microsoft Internet Explorer is and why a lot of their failure to become a leading web brand can be traced back to the terrible browser they created. That’s negative and boring.

I just want to share my disbelief at the bug I just fixed and help any of you to quickly deal with it on your own.

I use a CMS called CMS Made Simple and it has a module called FormBuilder. To show a form on a page you use a tag like this:
{FormBuilder form='contact'}

This code build a form from a GUI editor within the CMS. It will basically print out <form> ALL SORTS OF FORMS STUFF </form>.

Now, the bug. Because the whole form is constructed from that one simple tag, it is not impossible for someone to put it within a paragraph tag.

Our client is semi programming literate and put this:

<p style="padding: 0px 0px 0px 0px;">Click here for <a href="{cms_selflink href='staff'}">Staff Directory</a>{FormBuilder form='contact'} </p>

The result in any other browser is that the form works fine. In Internet Explorer 8,9 that results in a dead Submit button. You click Submit and nothing happens. Terrible result that is very difficult to debug. To fix it all you have to do is move the form out from within the <p>—</p> tags.

I hope this saved somebody some time.

blog comments powered by Disqus