Friday, 15 February 2013

javascript - unterminated string literal using Feather and aspx -



javascript - unterminated string literal using Feather and aspx -

i have aspx page want launch javascript 1 time button clicked. so..

<p><input type='image' src='http://images.aviary.com/images/edit-photo.png' value='edit photo' onclick="return launcheditor('imgclub', ' <%= imgclub.imageurl.tostring()%> ');" /></p>

the javascript below (it adobe's aviary/feather)

<script type='text/javascript'> var feathereditor = new aviary.feather({ apikey: 'your-key-here', apiversion: 3, theme: 'dark', // check out our new 'light' , 'dark' themes! tools: 'all', appendto: '', onsave: function(imageid, newurl) { var img = document.getelementbyid(imageid); img.src = newurl; }, onerror: function(errorobj) { alert(errorobj.message); } }); function launcheditor(id, src) { feathereditor.launch({ image: id, url: src }); homecoming false; } </script>

the problem i'm getting error @ <% imgclub.imageurl.tostring()%> on

onclick="return launcheditor('imgclub', ' <%= imgclub.imageurl.tostring()%> ');"

javascript asp.net asp.net-mvc aviary

No comments:

Post a Comment