V156a and non-CAPTCHA and Honey Pots and getting Internet Explorer to play nicely.
This what I have found:
IE defaults to compatibility (quirks) mode on local intranets. The way to overcome this is to add
Code:
<meta http-equiv=”x-ua-compatible” content=”IE=edge” />
to the html header for local development and testing only. Remove it for production systems. I added this to the file \includes\templates\MY-TEMPLATE\common\html_header.php.
IE and Edge both hide the slider ball (thumb) by placing it behind the slider bar.
Attachment 18337
IE does not execute js script that it does not like. There are no warnings and no errors.
IE seems to prefer onchange to oninput for detecting the movement of the slider.
I modified the non-CAPTCHA and Honey Pots js file for the contact_us page as this is the only one I use.
Code:
<script type="text/javascript">
$(document).ready(function () {
var slideCol = document.getElementById("id1");
var y = document.getElementById("f");
y.innerHTML = slideCol.value; // Display the default slider value
slideCol.onchange = displayCol; // IE prefers onchange so call the named function
// Update the current slider value (each time you drag the slider handle)
slideCol.oninput = displayCol; // call the named function
function displayCol() { // name the function
y.innerHTML = this.value;
if (this.value == "<?php echo SPAM_TEST; ?>") {
y.innerHTML = "<?php echo SPAM_ANSWER; ?>";
}
}
});
</script>
The other browsers and Edge still will work with this.
I use the ZCA_Bootsrap template your style sheet will be different.
I deleted the slider height of 1px.
I created another definition for thumb for IE
Code:
.slider::-ms-thumb {
-webkit-appearance: none;
width: 25px;
height: 25px;
border-radius: 50%;
background: red;
cursor: pointer;
z-index: 900;
}
It is ugly as the bars in the slider are still visible but it works.
Thanks Dave for a great plugin.
environment Dev: WAMP 3.1.6; Zen Cart 156a; Apache 2.4.33; PHP 7.3.1; MySQL 5.7.21; Windows 10
environment Test: Zen Cart 156a; Apache 2.4.29; PHP 7.2.4; MySQL 5.7.24; Linux 4.15.0
Bookmarks