0
var url = "http://pinterestapi.co.uk/" + pinterestUsername + "/pins";

$.ajax({
    dataType: "jsonp",
    url: url,
    success: function (data) {
        alert(data)
    }
});

firebug "invalid character" error shows

dataType:"json" is not working

Jesse Beder
  • 33,081
  • 21
  • 109
  • 146
Cesur APAYDIN
  • 806
  • 3
  • 11
  • 24

1 Answers1

0

Try .getJSON().

var url = "http://pinterestapi.co.uk/"+pinterestUsername+"/pins";

$.getJSON(url, function(data) {
    alert(data);
});

Ok, lets try something different...

Assuming you are the user "jwmoz".

   var user = "jwmoz";
   var url = "http://pinterestapi.co.uk/"+user+"/pins";

   $.get(url,
       function(data) {
       alert(data)
   }, "jsonp");

Check out this page jQuery AJAX cross domain, this should give you a rough idea and several userful links to solve your problem.

Ps- sorry for misunderstanding your question first time around! Best of luck!!

Dom

Community
  • 1
  • 1
Dom
  • 7,135
  • 1
  • 11
  • 13