简体   繁体   中英

Web application triggers different button after using meta http-equiv=“X-UA-Compatible”

I have an Classic ASP application. The application will now be used in IE11 , and for making it compatible with the same, I used the meta tag

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

The page triggers emails to people who are mentioned in them. The page has two buttons, namely Back and Submit .

Back :

<button class="buttonInput"
                  style="cursor:hand"
                  name="btnBack"
                  value="Back"
                  onClick="javascript:history.back()">Back</button>

Submit :

<button class='buttonInput' style='cursor:hand' name='btnSubmit' value='Submit' onClick='javascript:document.forms[0].submit()'>Submit</button>

The usual behavior of the page is to send emails once submit is clicked. But once the <meta> is included, the Cancel button too triggers mails.

Any Ideas as to why this could be happening? I really am not able to decipher the issue.

PS: I have used other versions of IE in my meta tag and it doesn't make any difference.

Without being able to see the rest of the markup, it's hard to say. I'm reasonably certain your app is running either as an IE5 app (because there's no doctype) or in IE8 standards mode.

Either way, you're dealing a legacy rendering issue that's not present in versions. I suspect you've some script dependency on class or name , as I seem to recall there were some parsing differences in earlier versions.

There's also a possibility that IE11 enterprise mode (EMIE) will help.

Hope this helps...

-- Lance

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM