Thursday 15 March 2012

javascript - Uncaught SyntaxError: Unexpected token ILLEGAL Can someone see where I went wrong? -



javascript - Uncaught SyntaxError: Unexpected token ILLEGAL Can someone see where I went wrong? -

function newreply(username, userimage, text) { homecoming "<div class='reply'> <div class='user-picture-reply'><img class='img-circle' height='30' src='" + userimage + "'></div> \ <div class='reply-arrow-left'></div> \ <div class='reply-content'>"+ text + "</div> \ <div class='reply-username'>posted " + username + " now</div> \ </div>"; }

it's been long day of coding can see whats causing error? says @ line 74 line return

the first line needs \ next first div.

let me know if works, if not same error?

that syntax error see, other code looks fine.

if still throwing error perhaps provide context?

edit: looks answered in comments, luck!

javascript

No comments:

Post a Comment