LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
JS
var formURL = "https://docs.google.com/forms/d/15Ts8au3uporAAOmcPJAcHTpK91t2kIAjej0djfHfxE4/formResponse?"

sendBtn.onclick = function(){
  var data = {
   "entry.779126364" : document.getElementById("entry.779126364").value,
   "entry.1039583708" : document.getElementById("entry.1039583708").value,
   "entry.1039271422" : document.getElementById("entry.1039271422").value
    
  }
 postToGoogle(formURL, data);
 // loadSheet.click(); 

}

// loadSheet.onclick = function(){
//   $("#googleSheet").load("https://docs.google.com/spreadsheets/d/1bhy-fVlIZevvADgwvZUjJAnX4qkOTIRy5uvUKQ0sZsg/edit#gid=1422223949")
//   document.getElementById('googleSheet').contentWindow.location.reload(true);
// 
// }

function postToGoogle(googleURL,data) {
    $.ajax({
        url: googleURL,
        data: data,
        type: "POST",
        dataType: "xml",
        statusCode: {
            0: function() {
                //Success message
            },
            200: function() {
                //Success Message
            }
        }
    });
}

//  document.getElementById("googleSheet").innerHTML = ''
Term
Sat, 04/14/2018 - 20:46

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv