mardi 23 octobre 2018

Implement mdbootstrap with laravel project to make it work in IE11

I'm using Laravel 5.4 and recently started to use mdbootstrap (pro). While everything works in Chrome or Firefox, Internet Explorer 11 makes problems. I can't get the JavaScript part working. Here is how I implemented it (jquery is imported by bootstrap.js):

master.blade.php (bottom)

<script src=""></script>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>

<script>
    $(function () {
        $('.stepper').mdbStepper();
        $('.mdb-select').materialSelect();
    });
</script>  

Here are some examples for errors that are thrown:
On every page:

SCRIPT438: The object doesn't support the property or method "materialSelect".  

On a page that uses the stepper:

The Object doesn't support the property or method "easeOutQuad".  

Well you get the point. It seems that IE doesn't recognize the imported functions.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire