Andres SK
Andres SK

Reputation: 10974

jQuery Coda Slider: javascript error in IE8 only

I'm getting a javascript error when using coda slider in IE8:

"Expected ']'"

Weird thing is that it only triggers when I put it online. If I use the localhost version of the site, nothing happens.

The error occurs when using:

echo '<a href="javascript:void(null);" onclick="$.prettyPhoto.open(
 [\''.implode('\',\'',$pp['gallery']['link']).'\'],
 [\''.implode('\',\'',$pp['gallery']['title']).'\'],
 [\''.implode('\',\'',$pp['gallery']['description']).'\']
);">gallery</a>';

any ideas?

Upvotes: 0

Views: 830

Answers (1)

Boris Delormas
Boris Delormas

Reputation: 2549

Is one of your variables having a simple quote ?

Upvotes: 1

Related Questions