Revólver.js IE 9

IE9 is throwing "Object doesn't support property or method 'revolver' " error - other browsers are working correctly - javascripts are entered in a good order i think - and i do not use prototype or more jquery versions as well.

Mi código:

<!-- latest jQuery  -->
<script type="text/javascript" src="js/jquery/jquery.js" />
</script>
<script type="text/javascript" src="js/ajaxhelper.js"></script>
<!-- JScrollPane mousewheel plugin -->
<script type="text/javascript" src="js/jscrollpane/jquery.mousewheel.js"></script>
<!-- JScrollPane script -->
<script type="text/javascript" src="js/jscrollpane/jquery.jscrollpane.min.js">                         
</script>
<!-- Revolver.js -->
<script type="text/javascript "src="js/revolver/jquery.revolver.min.js"></script>

And my ajaxhelper class:

function getProject(id){
$.ajax(
{
    type    : "POST",
    url     : "projects.php",
    data    : {
        "project-id" : id,
        "action" : "image"
    },
    success : function(response)
    {                      

        $(".imagesection").empty();

        $(".imagesection").append(response);

        var revolver = $('#my-slider').revolver({ ... }).data('revolver');

}

I am appending the "my-slider" , and calling the revolver function on it - theres where IE9 stops.

preguntado el 26 de agosto de 12 a las 23:08

So far I have not been able to reproduce this. Would you mind recreating your error in a jsfiddle or something? -

2 Respuestas

encontré esto

https://github.com/johnnyfreeman/revolver/issues/7

looks like a known issue with ie9.

Respondido 27 ago 12, 00:08

The cause of that issue was because the script was being loading directly from Github's servers. That doesn't seem to be the case here. - Johnny

In your HTML HEAD block, change

<script type="text/javascript "src="js/revolver/jquery.revolver.min.js"></script>

a

<script type="text/javascript" src="js/revolver/jquery.revolver.min.js"></script>

Notice where the double quote is after text/javascript? : P

Respondido 29 ago 12, 13:08

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.