Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: Ajax API
i'v been struggling with POST on Picasa API.
Here's code
                type: "POST",		    	
                url: '' + uid + '/albumid/' + album_id + '/photoid/' + photo_id + '?content=' + content,
                crossDomain: true,
                data: { content: content },
	    success: function() { alert("Success"); },
	    error: function() { alert('Failed!'); }
I've already retrieved some informations via GET without problems. Now when i try to do post in chrome i got this error
XMLHttpRequest cannot load Origin http://localhost:3000 is not allowed by Access-Control-Allow-Origin.
And when i try in firefox in request header method is changed to OPTIONS and status is 204: no content. Also, I've tried to change datatype to jsonp but then http method chages to GET.
Posted 22-Nov-12 3:00am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 484
1 Peter Leow 443
2 Sergey Alexandrovich Kryukov 288
3 Kornfeld Eliyahu Peter 270
4 Maciej Los 230

Advertise | Privacy | Mobile
Web04 | 2.8.150301.1 | Last Updated 22 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100