<form action="http://rdio-service.herokuapp.com//search?" method="get" target="_blank">
Enter Keywords: <input type="text" name="q"><br> <button>Find songs</button> </form> I see the JSON output in another tab, but I'd like to store the JSON data in a variable. I've tried using AJAX requests for this but to no avail. I can't even get a message letting me know whether or not I've failed. $(document).ready(function() { $("#get-json").click(function() { $.ajax({ url: "http://rdio-service.herokuapp.com//search?q=jay", type: "GET", dataType: 'JSON', success:function() { alert('success'); }, error:function() { alert('error'); } }); }); }); | |