git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<!--To get more Meta Tags visit here: https://gist.github.com/MicBrain/46a9723158307fd30db66a4b2af85411 --> | |
<meta charset="utf-8"> | |
<meta http-equiv="content-type" content="text/html"> | |
<title> The name of your website. </title> |
var $form = $('form#test-form'), | |
url = 'https://script.google.com/macros/s/abcdefghijklmnopqrstuvwxyz1234567890/exec' | |
$('#submit-form').on('click', function(e) { | |
e.preventDefault(); | |
var jqxhr = $.ajax({ | |
url: url, | |
method: "GET", | |
dataType: "json", | |
data: $form.serializeObject() |
This collection of files serves as a simple static demonstration of how to post to a google spreadsheet from an external html <form>
following the example by Martin Hawksey
You should be able to just open index.html
in your browser and test locally.
However if there are some permissions errors you can make a quick html server with python
. Open terminal and cd to the directory where the gist files are located and enter python -m SimpleHTTPServer
. By default this creates a local server at localhost:8000
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<meta name="author" content=""> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> |