Integrate HTML forms? #5873
Replies: 2 comments 5 replies
-
Updated with public URL https://anthonymuscio.github.io/testforms.html |
Beta Was this translation helpful? Give feedback.
-
I think this example doesn't work. The text elements don't have any IDs, classes or labels, that could be used to reliably store content in a tiddler. ... I would go a completely different way. .. Your example form is built with 3 different elements.
So I would make 3 macros, that do the job and work with TW. IMO it will be 100 times less work, than building a general purpose parser that tries to make sense of a broken or incomplete html-forms copy-pasted from somewhere in the web. Having a look at: https://www.w3docs.com/learn-html/html-form-templates.html .... There may be about 20 different elements and that's it. Having macros, that put all the elements into a single dictionary tiddler and send the feedback as a feedback.tid file per mail, in a text-only mode, imo would go a long way. Using .tid as the file format, will avoid all the security and validation issues, that forms normally have. |
Beta Was this translation helpful? Give feedback.
-
Folks,
I suppose I know enough to be dangerous, and not enough to implement such things. I also have a deep knowledge of IT which means I often know when something is possible, but I do not know how to do it myself or explain all the details.
Why: because there is lots of free IP (intellectual property) out there if we could only integrate tiddlywiki with bog standard html even if it is limited to a few actions. I can argue this "why would do this" a lot more but for now I will assume your imagination can see where this could go.
Perhaps I miss understand but does the event catcher widget offer a method to achieve the following, or can you see a way to do this?
I understand tiddlywiki uses the DOM document object model differently but I wonder if we can interface with the standard DOM such as we could provision a little support to make use of available forms. As I understand it there is a level of sand boxing.
Please look at the following tiddlywiki https://anthonymuscio.github.io/testforms.html
Now as I understand it everything is working until the user hits submit and we have no backend to process it, but we do know everything is in the browser memory/dom. Until refreshed that data remains on the screen.
So my Question is;
Can anyone envision a way to provision A service in tiddlywiki that such a form could be interrogated and store the result in a tiddler for subsequent use? Ideally such a form could also be populated from data in a tiddlers fields as well to allow editing but just a submission equivalent would be very useful. Ideally this would be without modifying every input to a widget, but extracting content and saving it. Or perhaps a special parsing layer that converted html to widgets?
Past experiments;
Just so you are aware I have placed such html into a tiddler before with html, Javascript and php underlying the tiddlywiki in the same only host and seen that such forms can be operational. This is in itself a possible avenue to expose login and security and permit saving to a host not unlike tw-reciever does. However in this discussion I am hoping someone with more skills than I can find a way to make this a reality within TiddlyWiki.
Regards
Tones
Beta Was this translation helpful? Give feedback.
All reactions