[TW5] Idea to use Google Forms without iframe

651 views
Skip to first unread message

sini-Kit

unread,
Mar 7, 2016, 3:14:30 AM3/7/16
to TiddlyWiki
Hi! As you know I make TiddlywikiShop witch work without server part (PHP or Node.js don't need on server) My shop is static. So one problem I cant solve is sending e-mails from static site. The only way was to use external free services for sending. That is why I use mandrill for sending orders (free limit 2000 letters per month)  . But very soon mandrill will stop free accounts, and I  was very sad.

The new way to send emails (notify to shop and client) is google forms. But clients are not ought to put information (order number, prices and so on) directly to this form. I write a small js script. it takes values from $edit-text and put them to google invisible form. You can can make test order here http://novye-podarki.ru/heeg.html#hot and your order will in one second appear in this table (it is connected with form) https://docs.google.com/spreadsheets/d/1tkOhPUj7KpdrTNHu3Zd1qPfNrGgyp1SLDRi7-8iBlQ0/edit#gid=996316560

the simple way to get google form without iframe is to send it yourself to e-mail, and copy it from DOM tree here finish result http://novye-podarki.ru/heeg.html#google_form    . it is nessery to modify code in two places

<iframe name="my_iframe" style="display:none;"></iframe>  (this line we use not to go to google page after submitting form)
<form action="https://docs.google.com/forms/d/1D4cho-vxcDc-pnLhhMSODcHMfOoc6Om9vtO9iIjsbkc/formResponse" method="POST" target="my_iframe" >

AND delete "name" here to get this result

<input type="submit" value="Готово">


Jed Carty

unread,
Mar 7, 2016, 5:06:06 AM3/7/16
to TiddlyWiki
I made a widget to do this for twederation stuff then completely forgot to put it here. I will try to remember to put it up when I get home tonight.

sini-Kit

unread,
Mar 9, 2016, 3:18:56 AM3/9/16
to TiddlyWiki
I think, it will be great idea to make back connection to spreadsheets and save ALL tiddler code with fields and tags to this table (when you press "save").  So we can have TW5 at home PC to public tiddlers to this table. And our static site which get all its content from this table.    We can public content to this table from several TW5, make comments system, chat or forum with google accounts (use API).
Forum on static site.  it is really  nice :)

понедельник, 7 марта 2016 г., 13:06:06 UTC+3 пользователь Jed Carty написал:

Jeremy Ruston

unread,
Mar 10, 2016, 6:21:15 AM3/10/16
to tiddl...@googlegroups.com
Hi sini-Kit

The idea of a saver that saves to Google Spreadsheets is pretty cool. One could image wikisheets.com/#url=<url of spreadsheet> to as a static HTML wiki that connects to the specified spreadsheet at startup to retrieve tiddlers. Then one would need a new saver module that writes the tiddlers back to the sheet.

Best wishes

Jeremy.


--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/31ae7227-f2be-4aff-986f-8fb085642f4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages