[Plugin: Job Manager] Process applications vis AJAX
-
I am using the Job Manager plugin with an AJAX-driven site; I have a script which works in combination with Ben Alman’s Hashchange script to pull requested pages via JavaScript instead of reloading the entire page. It works thoughout the site and even works with the Job Manager plugin when displaying jobs and loading the application form. The problem happens when submitting the application form. The form is processed via PHP and does not generate a hashchange, so the end result is the page refreshes; this causes it to reload the application (now blank) via the AJAX script. Also, the application is not stored in the system.
I looked through the plu-in files and while I’m far from a PHP expert I can see there is a process which pulls the application data and stores it as a post via wp_insert_post, and after that a function is called to email the application. I need to subvert the process so the post insertion process is handled via an AJAX call. My script can detect when an application page is loaded (as opposed to a listing page) and display it correctly so I want to override the post action with one which is AJAX powered. Is this possible?
- The topic ‘[Plugin: Job Manager] Process applications vis AJAX’ is closed to new replies.