grivus
1
Hello,
I have this code:
var script_url = "https://script.google.com/macros/s/sasasaj/exec";
function insert_value() {
var url = script_url + "?=callback=ctrlq&name=" +name+"&email="+email+"&action=insert";
var request = $.ajax({
url: url,
method: "POST",
dataType: "jsonp",
crossDomain: true
});
};
On firefox i’m getting this error: error: [object Object].
On chrome i’m getting success.
Any help?
Don’t know and I can’t test it because it is incomplete. Can you try this so we can get better data?
var request = $.ajax({
url: url,
method: "POST",
dataType: "jsonp",
crossDomain: true,
error: function(jqXHR, textStatus, error) {
console.log('error in AJAX call...');
console.log('jqXHR:', jqXHR);
console.log('textStatus:', textStatus);
console.log('error:', error);
},
success: function(data) {
console.log('succes in AJAX call...');
console.log('data:', data);
}
});
grivus
3
Hi Kevin,
I’m getting:
error in AJAX call…
jqXHR: readyState: 4, status: 404, statusText: “error”.
textStatus: error
error: error
grivus
4
This is the url:
var url = script_url + "?name=" +name+"&email="+email+"&phone="+phone+"&location="+location+"&company="+company+"&package="+package + "&treatment=" + treatment + "&dekking=" + dekking + "¬itie="+notitie+"&bonus="+bonus+"&bonustimer="+bonustimer+"&action=insert";
Do you have a working example? A pen or a repo?