Let HTML be free (republished) #5433
Replies: 3 comments 4 replies
-
Not sure I'm following all of what you said, Tony, but the
The form as no The input elements are regular The form has two "extra" attributes, When the The Like I said, contrived. But it does do one thing nicely -- via a lengthy route, allows modifying fields in the current tiddler :) Maybe there's a few other things eventcatcher can help with. @saqimtiaz I was surprised to discover that |
Beta Was this translation helpful? Give feedback.
-
Thanks for that example case. It is to me a partial example of what we may do to give html a new life in tiddlywiki.
I am in the process of boosting my HTML CSS and Javascript skills to this end, however even some time ago I managed to include HTML in a tiddler that was able to submit a form to my PHP host (by adding the supporting files in the same folder as the tiddlywiki). In this case the html was merely presented via tiddlywiki and the rest of the code on the server. keep in mind the host must permit this and supply the relevant code so we are not granting powers to tiddlywiki that html etc... would not have on a host configured as such. One reason I was exploring this was this would allow a module (TW5 plugin) to be written that could be used to service login and permissions or even form submissions through tiddlywiki as the user interface to the host, thus enabling check in and out, and other host dependant solutions that tiddlywiki cant easily address. |
Beta Was this translation helpful? Give feedback.
-
As well as html forms, one could envisage a plugin providing XHR (i.e "ajax"). But I'm still not clear why you choose to say "Let HTML be free..." - how is it not free now? I'm not quite getting it... |
Beta Was this translation helpful? Give feedback.
-
Folks,
Following on from my speculation in dealing with cases such as the html details or the closed Let HTML be free #3380 , I have started this discussion, I would like your views on the following.
If we could find a way to support the integration of HTML with TiddlyWiki for these "primitives" I believe this would be very popular, one way maybe to have some basic functions that "emulate" common html javascript functions OR extend the way WikiText containing HTML is parsed, so that the two work better together.
Eg a way to provision the html details with a toggle value.
The idea would be to leverage the rich html environment and reduce the need for solutions to be built into tiddlywiki when they already live in the HTML5 standards. If you spend time as I have looking at HTML at https://www.w3schools.com/ you will see that on many occasions that the html demands JavaScript which will not (directly) work in tiddlywiki but more often than not this java script seems really basic, allowing a value to be set or stored on click or some other primitive operation. Or the browser contains the value the html has produced from input to states but we have no way to reference it in the wikitext.
In fact TiddlyWiki has already done as I propose with CSS allowing it to be a fully supported standard in tiddlywiki as well as permitting it to be used in response to tiddlywiki tags and other attributes.
I am not saying this is simple, but it potentially is, and I do not have the experience to implement it.
In some ways Evans formula plugin is doing this by allowing html attributes to be set using tiddlywiki variables and tiddler/fields.
What remains is I believe a need to connect HTML more closely to the tiddlywiki internals.
One slightly more complex example may be html forms and php https://www.w3schools.com/html/html_forms.asp
If we could only access the values above we know are stored in the browser eg firstname lastname
But I think it worthy of investigation, because it would open the world of HTML5 and related frameworks to users while reducing the need for "equivalent" widgets like the Details widget. It will simplify what goes into tiddlywiki while at the same time enriching its capabilities. Further once a subset of tiddlywiki/html5 "methods" are available it would be easy to translate a wealth of code from html training and support sites, and users.
Please consider deeply, the return could be massive.
Regards
Tony
Beta Was this translation helpful? Give feedback.
All reactions