SyntaxError: missing ; before statement Jquery
i have a javascript file (generated dynamically from php with javascript
headers). Now this code results in error, i tried to debug for quite some
time without a clue:
Error: SyntaxError: missing ; before statement
document.write('$(function() '+
'{ $("#verify").click(function() '+
'{var order = ""; '+
'$(".captchaimage").each(function() '+
'{order += "ggggg"+ $(this).attr("name");}) '+
'console.log(order); '+
'$.ajax({ '+
'url: "http://healtheworld.com/own/json.php?var=" + order.substring(5), '+
'dataType: "text", '+
'cache: false, '+
'success: function(data){console.log(data);} }); '+
'}); '+
'});');
No comments:
Post a Comment