Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Ajax API
i'v been struggling with POST on Picasa API.
Here's code
 
			$.ajax({
                type: "POST",		    	
                url: 'https://picasaweb.google.com/data/feed/api/user/' + 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 https://picasaweb.google.com/data/feed/api/user/jasenko.hadziomeragic@gmail.com/albumid/5623228006440615505/photoid/5813338978197482482?content=%20dsad%20sa%20d. 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 2:00am
jataja140

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

  Print Answers RSS
0 OriginalGriff 279
1 Nirav Prabtani 253
2 Sergey Alexandrovich Kryukov 209
3 _Amy 165
4 Richard MacCutchan 135
0 OriginalGriff 7,799
1 Sergey Alexandrovich Kryukov 6,966
2 Maciej Los 3,994
3 Peter Leow 3,708
4 CHill60 2,742


Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 22 Nov 2012
Copyright © CodeProject, 1999-2014
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