[TW5] Updated SubmitForm plugin (and released it as a plugin)

189 views
Skip to first unread message

Jed Carty

unread,
Mar 25, 2017, 10:34:26 AM3/25/17
to TiddlyWiki
As part of my other projects I have been using xmlhttp requests to send information from a wiki. To make this easier I made an action widget, I was using it for part of TWederation and it looks like I am going to need it again so I put it in a plugin and made a demo site for it.

It is a very simple wrapper on xmlhttp requests but it has been flexible enough to suit my needs.

The demo site has instructions for setting everything up so you can send data from a wiki to google sheets, but the plugin should work with anything that takes http form data.

The plugin is has been added to the OokTech plugin library, the demo site is here: https://ooktech.com/TiddlyWiki/SubmitForm/ and the code is on GitHub here: https://github.com/OokTech/TW5-SubmitForm

As a note about the motivations for this, I am hoping to create a simple node server that can run alongside the node version of tiddlywiki. I want to use this as the basis for an ad-hoc network of optional servers that could support twederation and let us move forward with it. Problems with accessing the server from the outside world may prevent this from being useful, but googles new apis are making it difficult to access data put into google sheets from tiddlywiki so I want a simple alternative, and I would rather not use google anyway.

Jan Johannpeter

unread,
Mar 26, 2017, 9:05:04 AM3/26/17
to TiddlyWiki
Hey Jed,
This is is a great and very desired improvement, thanks a lot. 
Especially for educational purposes this makes it easier to collect feedback and answers.

Some time ago I was fascinated by https://tritarget.org/ because this site seems to achieve submitting entire tiddlers to a server.
This would be a great feature for cooperation.

So thanks again for the improvement, 
yours Jan







--
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+unsubscribe@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/d21967aa-8bd0-4913-8620-b6f18967ae86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tom Bardout

unread,
Mar 31, 2017, 10:40:31 AM3/31/17
to TiddlyWiki
This is great. I'm not too sure how to go about using it though... can you make a tutorial because the intructions are a bit too summarized. Does this work for forms with multiple pages? Does this work with drop-down menus?

Lost Admin

unread,
Mar 31, 2017, 11:25:11 AM3/31/17
to TiddlyWiki
As Tom said, I think is is a great idea but I'm left a bit confused on implementation and limits.

In my case, I think this would be a nice way to build and maintain forms on a website by using TiddlyWiki as a sort of content editor and exporting things to static pages. I don't know if this plugin would actually support exporting to html but it would be nice.

Also, the instructions only talk about using Google as a back end. What if I want to use my own back end server?

Tie in the forms with something that can read back the submitted XML and display it and you have the start of an interesting sort of open-source InfoPath replacement. Maybe I'm going too far with this but I keep re-thinking how I want the back-end of my still-not-really-ready https tiddlywiki server project.

Jed Carty

unread,
Mar 31, 2017, 11:54:57 AM3/31/17
to TiddlyWiki
It should work with anything that can take http form data. The actual goal for this is to make a back-end server that you can send and retrieve tiddlers or bundles of tiddlers from for either personal use or sharing. It is one part of how I am hoping to continue work on twederation.

The only reason it is using google to send the data to is because that is the only place that I could send the form data and have it publicly available afterward so people can see what is going on.

I will hopefully be making more in the way of tutorials and demonstrations in the future, but how long it takes to get to 'the future' is unknown.

Lost Admin

unread,
Mar 31, 2017, 12:47:30 PM3/31/17
to TiddlyWiki
Thanks.

Once I get enough functionality on my https server, I'll want to poke around with this form tool of yours.

I was wondering if I could use a mongodb (json like data structures) as a back-end. When I first ran across TiddlyWiki I thought it would be interesting to host the content of TiddlyWikis on mongodb with the javascript interface talking directly to it but that sort of thing is very far beyond my skills at this point.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages