(To Derrell & Jim) I wholly agree with the both of your suggestions of server side validation. There is plan for this as a final step. The idea was to not have the user enter 20 fields and find out there is an error. Suffice it to say, this is a secure network. I still need to understand how to process anything back and forth between A4D and javascript, if it is at all possible. I know that 4D's web server ignores 4DSCRIPT tags, etc within the <script> tag.

I guess another way to phrase my question would be: can I embed an A4D or 4D call into a javascript method? My naive understanding of A4D is that it is preprocessing the '.a4d' html files for sending to the client. Does A4D allow embedding calls inside of a javascript declaration? If not, then any suggestions?

Thanks again,

-Bill

>> More specifically, the 4D concept of object methods associated with
 input field and variables. I would like to call a 4D routine to scan
 the entry of a text area and verify its validity without 'posting'. Is
 this possible?

Bill,

 Unfortunately the browser only knows html, javascript, css and a few
 other things so if you want the power of 4d you will have to do that on
 the server.

 If you want to do client side checking or validation of an input field
 without posting back to the server, you will need to use javascript. If
 you use server side validation you can either call 4d method(s) or more
 appropriately write an Active4d method(s) that does the validation. I
 would highly recommend doing the server-side validation with A4D
 methods.

You should validate all of the user input on the server side even if you use javascript to validate on the client side. It's very easy to disable javascript in most browsers. There are also many "clever" individuals who know enough to save your page to their hard drive and modify it so that your carefully crafted javascript does not do what you intended.

--
// Derrell Thomason               <mailto:[EMAIL PROTECTED]>
// Desktop Programming Coordinator
// Pensacola Christian College    <http://www.pcci.edu>
_______________________________________________
Active4d-dev mailing list
[EMAIL PROTECTED]
http://aparajitaworld.com/mailman/listinfo/active4d-dev


--
#######################################################################
#  William N. Swann
#  Consulting Principal
#  BioComp Consulting Group, Inc.
#  5835 Avenida Encinas
#  Suite 121
#  Carlsbad, CA  92008     (760) 438-1351  fax: (760) 438-2852
#######################################################################



Reply via email to