There's a couple of places where this kind of thing would be handy in my
current wiki; one is to build and send a simple AJAX request to a machine
on the network using an IP specified in the text box i.e:
"http://{{IP}}/api?foo=bar", and the other is to calculate a simple
checksum of an RS-232 data packet based on some dynamic parameters.
I'm sure there's probably other places it would come in handy too though.
Thanks,
Mike
On Monday, 17 August 2015 12:28:56 UTC+1, Mike Sutton wrote:
>
> What I'm looking to be able to do is for the user to enter some text in a
> text box in a tiddler, press a button and have a piece of JavaScript run
> using the contents of the text box as input. Having the output of the
> JavaScript function injected into the page somehow is a bonus, but if not
> then a simple alert box or console.log would suffice.
>
> I've been looking into macros, but have yet to find any that use this sort
> of dynamic input/output.
>
> This is pretty simple to accomplish in vanilla web development, but I'm
> trying to write it the Tiddly way, any pointers?
>
> Thanks,
>
> Mike
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/575da169-3025-4dc1-bdd7-d292e330a139%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.