Jim Ryan
|
| Posted: 07/10/2001, 4:32 AM |
|
Can CC pass form input variables to javascript? Example, I want the user to
fill out a form then use a javascript email function, set up in the footer
section of the form, to send the contents of the form. Has anyone had any
success with this?
Thanks
Jim
|
|
|
 |
Jim Ryan
|
| Posted: 07/10/2001, 4:36 AM |
|
Forgot to mention I'm working with ASP
Jim
"Jim Ryan" <jryan@stratos.net> wrote in message
news:9iep41$gv0$1@news.codecharge.com...
> Can CC pass form input variables to javascript? Example, I want the user
to
> fill out a form then use a javascript email function, set up in the footer
> section of the form, to send the contents of the form. Has anyone had any
> success with this?
>
> Thanks
> Jim
>
>
|
|
|
 |
Alexey Alexapolsky
|
| Posted: 07/11/2001, 5:20 AM |
|
A very good question , Jim.
Here is the guidline :
On server side , e.g in Page/Open event ,
write a script that gets some data and pushes them into
a string variable so that when you output it , it would look like JS array.
like ,
myvar = "<script language=javascript> var a=Array; a[0]=0; <script> "
then somewhere in a Form/Open event on the page call SetVar "main","main" &
myvar
--
Alex
from CC
Jim Ryan <jryan@stratos.net> wrote in message
news:9iep41$gv0$1@news.codecharge.com...
> Can CC pass form input variables to javascript? Example, I want the user
to
> fill out a form then use a javascript email function, set up in the footer
> section of the form, to send the contents of the form. Has anyone had any
> success with this?
>
> Thanks
> Jim
>
>
|
|
|
 |
matt
|
| Posted: 08/09/2001, 6:10 PM |
|
How would one do this in PHP4 no templates?
Specifically, a conditional YES/NO alert box in BEFORE INSERT event..
e.g.
IF condition exists,
show YES/NO alert..
if answer is YES
$VAR1 = ($VAR1 - 12);
ELSE
ENDIF
then..continue with processing BEFORE INSERT as normal
Keeping in mind that I do NOT know how to do JavaScript at all.. especially
in PHP, could someone provide a complete code example fitting the above
description?
Thanx,
-=*Mystic*=-
.
|
|
|
 |
|