Am I even close to success? I'm trying to use this block of code is jsfiddle to use a PUT request to the API, when using www.hurl.it with the same URL & XML, it succeeds, (woohoo!) but when I try it using this code I have no such luck.
Selecting "RUN" is jsfiddle yields nothing, as in nothing happens at all except the page flashing.
var url = 'https://api.example.com/v1.svc/results/modules/[moduleID]?apikey=[apikey]&source=[source]'
var xmldata = '<ModuleResult><CourseId>JJxblllJXcw1</CourseId><UserId>XaWpNO10m-M1</UserId><Score>100</Score> <Completed>false</Completed><UpdatedAt>2030-04-30T15:36:30</UpdatedAt><Note>JIL</Note></ModuleResult>'
$.ajax({
url: url,
type: 'PUT',
contentType: 'application/XML',
data: xmldata,
success: function(data) {
alert('Load was performed.');
}
});
Any input would be greatly appreciated!
</div>