Datepicker plugin & static export

51 views
Skip to first unread message

Steven Schneider

unread,
Dec 12, 2019, 9:22:25 AM12/12/19
to TiddlyWiki
Hi folks,

I love the datepicker (http://kixam.github.io/TW5-datePicker/) plugin; thanks for the great work!

One bug: It generates a javascript fatal error when exporting a tiddler as static html:

 Uncaught TypeError: Cannot assign to read only property 'parentNode' of object '#<HTMLInputElement>'

Any thoughts? Thanks! //steve.


TonyM

unread,
Dec 12, 2019, 10:50:18 PM12/12/19
to TiddlyWiki
Steve,

Do I take is that you reference the date picker in the tiddler that you then export to a static tiddler? Static means a HTML only representation (No interaction or javascript) of what you see when the tiddlers wikitext is rendered.

In my view, In this case the date picker will not work in the static tiddler because its plugin code (perhaps also Javascript) is back in the source wiki plugin, thus I am not surprised it fails. The only way is to have a fully functional wiki or another javascript page.

Remember you could have a minimal wiki with only the tiddler you want displayed and any required plugins installed and provide a link to this seperate wiki.

Regards
Tony

You could use the html date picker but the value returned will be displayed but I doubt you can do anything else with it.
Reply all
Reply to author
Forward
0 new messages