How to pass non-database info in my Ajax call?
How to pass non-database info in my Ajax call?
My app needs to send a notification email when and only when a new database record is being created. If I can know the editor mode when I am processing the Ajax call, I can know when to send the notification. It looks like the editor mode carries that information. How can I pass the editor mode (create/edit) to the Ajax routine for my editor, and how do I access this parameter in the PHP that services the Ajax call? (Can I defineand process a Field that is not a database column?)
Thanks,
Tom
Replies
Hi Tom,
Sounds like a perfect use case for a server-side event - specifically the
postCreate
event in this case.edit The event handler is given the form information as a parameter.
Allan
Allan,
Thanks for your suggestion. It does seem to be the straightforward was of handling this.
Thanks,
Tom