I’m trying to make this call to send data to the server:
$.ajax({
type: "POST",
url: "/videos"
data: { title = oembed.title }
});
However, this doesn’t seem to work. I make a call to the Embedly API like so:
$('a.oembed').embedly({maxWidth:300,'method':'replace'}).bind('embedly-oembed', function(e, oembed){
});
so that I have access to the dynamically generated hash oembed, and I want to save oembed.title. I tried the $.ajax() call both outside and within the embedly call, and it seems to prevent the entire call to embedly from working. What am I doing wrong?
Try
Also I don’t see any handling of the response. Perhaps you would like to add a
successhandler: