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 withinput 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 #######################################################################
