Reputation: 12252
<script type="text/javascript"> var flashvars = { file: ’foo’, autostart: ’true’ };
</script>
Throws Uncaught SyntaxError: Unexpected token ILLEGAL with the newest Google Chrome.
Upvotes: 1
Views: 96
Reputation: 3606
<script type="text/javascript">
var flashvars = { 'file': 'foo', 'autostart': true };
</script>
Upvotes: 0
Reputation: 4105
You are using the wrong kind of apostroph. You write ’foo’ but it must be 'foo'
Upvotes: 1
Reputation: 817030
Probably because you don't use proper quotation marks. You use ’
instead of '
or "
.
<script type="text/javascript">
var flashvars = {file: 'foo', autostart: true };
</script>
Two more things:
type
attribute.true
does not have to be in quotes.Upvotes: 5