Quantcast
Channel: Kai Köpke » Browser
Viewing all articles
Browse latest Browse all 7

IE Javascript Error: Expected identifier, string or number

0
0
wpSEO, das Plugin für WordPress SEO

Dieser Fehler wird durch ein überflüssiges, abschließendes Komma in einer Aufzählung im Javascript verursacht. Was jeder andere gängige Browser ignoriert, stößt dem IE7 leider bitter auf.
Aus gegebenem Anlass hier ein Beispiel anhand eines kleinem Javascript bzw. Jquery Scripts:


1
2
3
4
5
6
7
8
9
10
11
12
13
<script type="text/javascript">// <![CDATA[
    jQuery(document).ready(function() {
         jQuery("div.scrollable").scrollable({
             speed: 2000,
             circular: true,
             easing: "swing"
             }).autoscroll({
                 autoplay: true,
                 interval: 5000,
                 autopause: true,
         })
     });
 // ]]></script>

Das abschließende, eigentlich überflüssige Komma in Zeile 10 ist hier der Verursacher der Fehlermeldung. Das Komma entfernen, schon ist der Fehler behoben.


Viewing all articles
Browse latest Browse all 7

Latest Images

Vimeo 10.7.0 by Vimeo.com, Inc.

Vimeo 10.7.0 by Vimeo.com, Inc.

HANGAD

HANGAD

MAKAKAALAM

MAKAKAALAM

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Vimeo 10.6.2 by Vimeo.com, Inc.

Vimeo 10.6.2 by Vimeo.com, Inc.

Vimeo 10.6.1 by Vimeo.com, Inc.

Vimeo 10.6.1 by Vimeo.com, Inc.

Vimeo 10.6.0 by Vimeo.com, Inc.

Vimeo 10.6.0 by Vimeo.com, Inc.

Re:

Re:





Latest Images

Vimeo 10.7.0 by Vimeo.com, Inc.

Vimeo 10.7.0 by Vimeo.com, Inc.

HANGAD

HANGAD

MAKAKAALAM

MAKAKAALAM

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Vimeo 10.6.1 by Vimeo.com, Inc.

Vimeo 10.6.1 by Vimeo.com, Inc.

Vimeo 10.6.0 by Vimeo.com, Inc.

Vimeo 10.6.0 by Vimeo.com, Inc.

Re:

Re:

Re:

Re: