I use the plugin "boostrap-dialog" in fiddler and it works, but in my system it does not

0

Here is a basic example of the code I use:

BootstrapDialog.show({
    message: '¡Hola!'
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.35.4/css/bootstrap-dialog.min.css" rel="stylesheet" type="text/css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.35.4/js/bootstrap-dialog.min.js"></script>  

The problem is that it sends me this error:

NOTE: I understand that BootstrapDialog is recognizing it as a variable. But why in fiddler it works and in my system does not?

    
asked by Pablo Contreras 26.05.2017 в 06:51
source

1 answer

1

I have tested your code, as I put it here:

<html>
    <head>
            <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
            <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.35.4/css/bootstrap-dialog.min.css" rel="stylesheet" type="text/css" />

            <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
            <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

            <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.35.4/js/bootstrap-dialog.min.js"></script>  


          </head>
          <body>


        <script>
        BootstrapDialog.show({
            message: '¡Hola!'
        });
        </script>
    </body>
</html>

It works!.

Try it on your machine, it should work, then the problem is your libraries or the order in which loads.

Greetings,

    
answered by 26.05.2017 / 07:14
source