Jquery ajax json and sending over window.location.href?
<p>I get a parser error thrown from this ajax call...</p>

<pre><code>var pageURL = document.location.href;
var hotlinkName = $('#hotlinkName').val();

if (hotlinkName.length &gt; 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);
    }
  });
}
</code></pre>

<p>As you can see in the error I alert the variables I am trying to send and they are as follows:</p>

<pre><code>Var hotlinkName: Testing
Var hotlinkURL: http://www.example.com/home
</code></pre>
