1

im getting this weird message its really awful. Here you can see a fiddle,

http://jsfiddle.net/xHL35/8/

Or you can paste the next code into an html ,

if is it a syntax mistake why it dosent tell me the line where the error is??

Also every time i clic next (When the overlay is open) the error comes again so after 5 clics, i have 5 errors on console.

Thanks

 <div id="navpics"><a href="javascript:();" class="prevImg">NEXT</a><div id="imageCounter"></div><a href="javascript:();" class="nextImg">PREV</a></div> 
11
  • 1
    xhtml transitional? What year is this? Commented Jun 5, 2013 at 17:07
  • 2
    well a side note: the api.next(); is outside the script block... Commented Jun 5, 2013 at 17:10
  • 2
    Well, <a href="javascript:();"> is definitely a javascript syntax error. What did you intend with that? Commented Jun 5, 2013 at 17:12
  • 1
    Works fine in Chrome v. 27. The only error I got in the console was one about an image blank.gif that could not be found 404 Not Found. Which part is not working and what browser is it now working in?... Commented Jun 5, 2013 at 17:12
  • 1
    And what is current for? Commented Jun 5, 2013 at 17:14

1 Answer 1

4
<a href="javascript:();" class="nextImg">NEXT</a> 

It does not like the ();

If you insist on using the anchor like that use void(0)

<a href="javascript:void(0);" class="nextImg">NEXT</a> 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.