AppJet
My Apps
App Directory
Docs
Forum
Help
sign in
App:
docman-forms2.appjet.net
(by
david
)
Overview
Source
Docs
Comments (0)
Clone This App
view as plaintext
/* appjet:version 0.1 */
import
(
"
quickforms
"
)
;
var
form
=
new
QuickForm
(
{
action
:
"
/
"
,
method
:
"
post
"
}
)
;
form
.
addHeading
(
"
h
"
,
"
Tell Elmer Fudd what to say!
"
)
;
form
.
addInputTextArea
(
"
theText
"
,
{
label
:
"
Enter (or paste) text
"
,
value
:
"
I have a dream. Let freedom ring.
"
}
)
;
form
.
addSubmit
(
"
submit
"
,
"
Say it
"
)
;
print
(
form
)
;
var
text
=
request
.
params
.
theText
;
if
(
text
)
{
text
=
text
.
toLowerCase
(
)
.
replace
(
/l|r/g
,
'
w
'
)
.
replace
(
/th/g
,
'
d
'
)
;
printp
(
"
Elmer Fudd says:
"
,
SPAN
(
{
style
:
"
color:green
"
}
,
text
)
)
;
}
© Copyright 2007-2008 AppJet Inc.