Page 1 of 1

unterminated string literal

Posted: Mon Dec 18, 2006 1:58 pm
by garry27
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


why do  i get an error on following code:

[syntax="javascript"]document.getElementById("addpub").innerHTML = "<div><a href=\"#\"onClick=\"javascript:addPub(" + pubID + ',' + crawlID + "); return false;\">Add to Pub Crawl</a></div>";
TIA


feyd | Please use[/syntax]

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Mon Dec 18, 2006 2:02 pm
by feyd
Can you post the entire error?

Posted: Mon Dec 18, 2006 2:31 pm
by garry27
in firebug, is says:

unterminated string literal
mapFunctions.js (line 109)
document.getElementById("addpub").innerHTML = "<div><a href=\"#\" onClick=\"javascript:addPub(" + pubID + ',' + crawlID + "); return false;\">

thanks