Form::...iptcode(3pm)

πŸ“¦
version 2.5.0 Β· 2 versions
, in ubuntu jammy

πŸ’– Form::...iptcode(3pm) β€” Embperl::Form::Control::scriptcode πŸ’–

okay bestie, so this one is a Perl manual page from the User Contributed Perl Documentation collection, and honestly? it's giving "small but mighty". it's called Embperl::Form::Control::scriptcode, and it's literally a control for adding script code to an Embperl Form. that's the whole vibe. short page, zero filler, we love that for us. πŸŽ€


✨ NAME ✨

Embperl::Form::Control::scriptcode β€” a control to add script code to an Embperl Form πŸ¦‹


✨ SYNOPSIS ✨

{
type   => 'scriptcode',
code   => 'function onEvent { .... }',
}

like, that's it. that's the whole flex. πŸ‘‘


✨ DESCRIPTION ✨

so what does it actually do? it's used to create a script code block inside an Embperl Form. the code block gets added to the end of the form β€” like it's the last one to leave the party 🫢

and if you wanna know how to specify parameters in general? go check out Embperl::Form, it's the main character for all that. πŸ’…

🌸 PARAMETER 🌸

here's the tea on the parameters, bestie:

  • type β€” needs to be set to 'scriptcode'. no cap, that's the required one.
  • name β€” optional. yeah, it's just optional. that's the whole description. πŸ™ˆ
  • scripttype β€” the type of script code. the default is text/javascript.
  • code β€” the actual script code. this is where you put your whole thing.

✨ Author ✨

G. Richter (richter at embperl dot org), A. Beckert (beckert@ecos.de)


✨ See Also ✨

perl(1), Embperl, Embperl::Form


ngl, this page is tiny but every single bit of it is doing its job. read the params, set your type, drop your code, and go live your best life. 🌈

and that's a wrap, babes β€” this lil' page is from perl v5.34.0, dated 2022-02-06. slay, bye, go write some forms πŸ’œβœ¨πŸŒΈ

πŸ“¦ where this page comes from