-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Answering my own post...
On 2009-04-15 13:49, Patrick Nagel wrote: > Can anyone think of another way I could get a button into that form? > > I figured out that the HTML/JavaScript would have to look like this: > > <input type="button" value="Fill in current date" name="fill_in_enddate" > onClick="mydate=new Date(); > document.createbox.input_12_day.value=mydate.getDate()"> > > - but how could I put this into the form, without making my own new > extension, > which I currently consider overkill? I found the HTMLets extension [1]. Now a file on the Wiki server called 'fill_in_current_date_button.html' contains the code for the button and the form (at the position where the button should appear) contains '<htmlet>fill_in_current_date_button</htmlet>'. Patrick. [1]: http://www.mediawiki.org/wiki/Extension:HTMLets - -- Key ID: 0x86E346D4 http://patrick-nagel.net/key.asc Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknoJlUACgkQyYHmhobjRtTjYACgrXnvmF+tS53MAWTELsJTI/4y lUgAoLaPvdtRLOfdNnU2F9T6hecYUJKE =C8WU -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Semantic Forms" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/semantic-forms?hl=en -~----------~----~----~----~------~----~------~--~---
