javascript - variable declaration causing page not to load? -
i've got following variable declaration..
var html = "<b>" + name + "</b> <br/>" + message + ' <div align="left"> ' + '<a href="path/to/php? id='+name'&message='+message+'&id='+id+'&lat='+lat+'&lng='+lng+'&type='+type+'" target="_blank">click me!</a>' + ' </div> <form name="myform" action="delete.php" method="post"> <div align="right"> ' + '<br/> <input type="radio" name="id" value= '+id+' > delete entry<br/> <input type="submit" /> </div> </form>';
inside function function createmarker(point, name, message, type, file, id, lat, lng)
i can't seem spot why variable declaration appears crashing page. have idea what's wrong declaration?
thanks.
there's "+" missing behind name.
Comments
Post a Comment