Note that there are some explanatory texts on larger screens.

plurals
  1. POmissing } after property list
    text
    copied!<p>I am trying to implement a content slider using jQuery in one of my website; however I keep getting this error:</p> <pre><code>missing } after property list </code></pre> <p>Here is my code:</p> <pre><code>&lt;script type='text/javascript'&gt; featuredcontentslider.init({ id: 'slider1', contentsource: ['inline', ''], toc: '#increment', nextprev: ['prev', 'next'], revealtype: 'click', enablefade: [true, 0.1], autorotate: [true, 3000] }); &lt;/script&gt; </code></pre> <p>When I click on view source in Firefox I found that the last curly bracket is missing but in the file the code is fine, and using firebug debug console I got this error: </p> <pre><code>missing } after property list </code></pre> <p>I tried many things, searched for missing commas, eliminate most of the lines but could not find the source of the problem.</p> <p>EDIT: Firebug points to this line:</p> <pre><code>}); </code></pre> <p>as the one with error.</p> <p>I just checked the script in IE8, Chrome and firefox and in all of the three broweser i get the code like this: </p> <pre><code>&lt;script type='text/javascript'&gt; featuredcontentslider.init({ id: 'slider1', contentsource: ['inline', ''], toc: '#increment', nextprev: ['prev', 'next'], revealtype: 'click', enablefade: [true, 0.1], autorotate: [true, 3000] ); &lt;---- notice the missing bracket &lt;/script&gt; </code></pre> <p>I also tried to write one line only like so:</p> <pre><code>featuredcontentslider.init({ id: 'slider1' }); </code></pre> <p>and still ended up with the same error. In localhost the script works fine, however in the actual website the script is functioning correctly.</p> <p>I am wondering is there a possibility that other js code in the page might affect the behaviour of this one?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload