Fehlermeldung im Script

Dustin84

Erfahrenes Mitglied
Hallo,

ich habe folgendes Script zum aufrufen von Modals (Bootstrap 3):
Javascript:
    /* Ajax modals
    // -------------------------------------------------- */
    $('[data-toggle="modal"]').on('click',function(e) {
        $('#ajaxModal').remove(); // Remove old modals
        e.preventDefault();
        var $this = $(this),
                $color = $this.data('color'),
                $remote = $this.data('remote') || $this.attr('href'),
                $modal = $('<div class="modal fade '+$color+'" id="ajaxModal"></div>');
        $('body').append($modal);
       
        $modal.modal({
            backdrop: 'static',
            keyboard: false
        });
       
        $modal.load($remote, function() {
            /* Slider product modals
            // -------------------------------------------------- */   
            $('.modal-pictures').carouFredSel({
                width                        : '100%',
                height                    : 'variable',
                responsive      : true,
                items : {
                    height        : 'variable', // important
                    visible                : 1
                },
                auto : {
                    play                  : false
                },                 
                scroll : {
                    items         : 1,
                    duration      : 500,                        
                    pauseOnHover  : true
                },
                onCreate: function () {
                    $(window).on('resize', function () {
                        $('.modal-pictures').trigger('configuration', ['debug', false, true]);
                    }).trigger('resize');
                }
            });
        });           
    });

Die Console im Chrome gibt folgende Fehlermeldung aus:
Code:
Uncaught Error: Syntax error, unrecognized expression: /_includes/ajax_modals.php?oid=29 jquery.js:1473
Sizzle.error jquery.js:1473
Sizzle.tokenize jquery.js:2087
Sizzle.select jquery.js:2488
Sizzle jquery.js:879
jQuery.fn.extend.find jquery.js:2704
jQuery.fn.init jquery.js:2821
jQuery jquery.js:73
(anonymous function) modal.js:266
jQuery.event.dispatch jquery.js:4641
elemData.handle

Dem Chrome und Firefox ist das egal aber dem Ie nicht.

Ich kann da aber keinen Fehler finden. Ihr vielleicht?

Gruß
D.
 
Hallo D,

was sagt der Stack Trace? Woher kommt die Fehlermeldung?

Falls du nicht weißt, wie du das herausfinden kannst, wäre es nützlich, wenn du ein ausführbares Skript auf jsFiddle.net bereitstellst.
 

Neue Beiträge

Zurück