Ottengo un errore parser generato da questa chiamata ajax …
var pageURL = document.location.href; var hotlinkName = $('#hotlinkName').val(); if (hotlinkName.length > 0) { $.ajax({ data: { hotlinkName: hotlinkName, hotlinkURL: pageURL }, success: function() { alert('Your hotlink ' + hotlinkName + ' has been inserted to the url: ' + pageURL); }, error: function (ajaxOptions, thrownError) { alert(thrownError); alert('Var hotlinkName: ' + hotlinkName + ' Var hotlinkURL: ' + pageURL); } }); }
Come puoi vedere nell’errore, avviso le variabili che sto cercando di inviare e sono le seguenti:
Var hotlinkName: Testing Var hotlinkURL: http://www.example.com/home