Skip to content Skip to sidebar Skip to footer

How Do I Send 'put' Request Through JavaScript & Ajax?

I have to write to my spreadsheet programatically. It allows my to write to a particular cell of the spreadsheet. My code is : function update(){ jQuery.ajax({

Solution 1:

Due to same origin policy restriction you cannot send AJAX requests cross domain. Here you are trying to send an AJAX request to https://spreadsheets.google.com and unless your site is hosted on https://google.com this won't work. To try to workaround this restriction you could write a server script on your server which will serve as a bridge between your domain and google.com. Then you could send the AJAX request to your script which will delegate.


Post a Comment for "How Do I Send 'put' Request Through JavaScript & Ajax?"